mysql - Should I RESET QUERY CACHE on a regular basis? -


i running website game. haven't touched such reseting query cache year game has been up, i'm working 5000-1million rows depending on table. being updated , things being inserted tables. if understand correctly, every insert or update clear cache table? that's searching online has found, don't know if that's true though or if should regularly reseting cache.

queries happened month ago no longer useful now. if it's storing query results it's worthless because chances no 1 going run same exact query again.

i ran show status "qcache%" , results were:

qcache_free_blocks 6941

qcache_free_memory 23490288

qcache_hits 253269763

qcache_inserts 368937684

qcache_lowmem_prunes 57410566

qcache_not_cached 9872266

qcache_queries_in_cache 35275

qcache_total_blocks 84877

i don't know things mean or if useful in determining whether or not need reset cache. in advance.

the manual didn't lie you, queries alter data in table invalidate cache entries reference table. never have manually flush cache.

if data updated queries never last in cache, or same query run infrequently it's not useful cache it, you're wasting huge amounts of memory , cpu time checking , invalidating cache entries on every insert , update query. see performance increase turning off query cache.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -