Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
yii 是否为数据库保持持久连接?
我发现,即使关闭浏览器窗口,长时间运行的 mysql SELECT 查询也会继续在后台运行并减慢其他人的速度。
您应该配置数据库查询超时。对于 mysql,您可以使用服务器上的“innodb_lock_wait_timeout”控制死锁检测的超时,文档:http ://dev.mysql.com/doc/innodb/1.1/en/innodb-other-changes-innodb_lock_wait_timeout.html