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.
我只需要尝试并清除缓存中的单个查询(实际上是存储过程),以便对其进行调试并客观地确定我们的优化是否有效。它在我们没有备份的客户生产系统上,并且执行数据库范围的查询缓存重置将是灾难性的。
关于查询缓存的一些事情:
您可以在查询中添加 SQL_NO_CACHE 关键字以避免缓存。