[英]Yii $connection = Yii::app()->db is slow
I have a fresh "installation" of yii with a mysql database in the background. 我在后台用mysql数据库进行了yii的全新“安装”。
If i want to get the db connection from the app: 如果我想从应用程序获取数据库连接:
$connection = Yii::app()->db;
it needs about 1 second to this. 大约需要1秒钟。
Is there any trick to speed it up? 有什么技巧可以加快速度吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.