What is the best setting for query_cache_min_res_unit
for these results:
+-------------------------+-----------+
| Variable_name | Value |
+-------------------------+-----------+
| Qcache_free_blocks | 35327 |
| Qcache_free_memory | 295242976 |
| Qcache_hits | 236913188 |
| Qcache_inserts | 49557287 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 7128902 |
| Qcache_queries_in_cache | 195659 |
| Qcache_total_blocks | 426870 |
+-------------------------+-----------+
Do I need to change any other settings?
My website creates very large results. This is the current setting:
query_cache_min_res_unit = 4096
Info on the mysql dev website
If most of your queries have large results (check the Qcache_total_blocks
and Qcache_queries_in_cache
status variables), you can increase performance by increasing query_cache_min_res_unit. However, be careful to not make it too large (see the previous item).