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.
我要在 phpMyAdmin 中执行查询。加载查询大约需要两分钟,但在查询结果的顶部显示“查询耗时 0.2768 秒”。这怎么可能?
结果集越大,phpMyAdmin 越慢。phpMyAdmin 脚本在 0.2768 秒内收到来自 MySQL 的查询结果。然后它必须解析其中的数千行/列数据并应用所有必要的标记以在浏览器中显示它。这会消耗时间和内存。如果速度是一个问题,我建议使用命令行客户端。
查询执行得很快,但 phpMyAdmin 需要很长时间才能加载它。