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.
我有一个查询,有时需要很长时间才能执行。
我知道我必须调整该查询并修复一些 MySQL 问题,但是,我的问题是其他的。
当此查询在 MySQL 中“锁定”其他查询时,生成该查询的 Apache Web 请求挂起(这是正常的),但阻止其他 Web 请求执行,因为其他 Web 请求生成其他 SQL 查询,但 MySQL 被“锁定”与第一个。
我该怎么做才能防止这种情况?我希望 apache 请求的一个慢速 SQL 查询不会影响其他 Web 请求的其他查询。