문제

I need to try & clear only a single query (actually a stored proc) from the cache in order to debug it & objectively determine if our optimizations are effective. It's on a client's production system that we have no backup for, and doing a db-wide query cache reset would be catastrophic.

도움이 되었습니까?

해결책

A few things on query cache:

  • Individual queries are being cached and not stored procedures.
  • Cache entries are invalidated once one of the tables that participates in the SQL is modified.

You can add the SQL_NO_CACHE keyword in your queries in order to avoid caching.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top