[MDEV-4582] QUERY CACHE - create a new query cache type, query_cache_type=PRUNED Created: 2013-05-26 Updated: 2015-11-17 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Query Cache |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | roberto spadim | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | querycache, querycache_insert | ||
| Description |
|
hi guys... i was testing query_cache_information plugin with production machines, and i'm surprised. there's many queries that expend < 10ms to be executed and return 1 row, that are cached could we develop some new query cache tunes/prunes? query_cache_prune_min_expend_time = 20ms only queries that: the point is add a new query_cache_type, today we have: PRUNED = only query with SQL_CACHE and not pruned by query_cache_prune* variables maybe could be used query_cache_type=ON and by default: i think that with this i can better tune app/db without rewriting them an black list could be used too... it's nice for high intensive query cache server with apps that can't be changed by users this issue was add to another MDEV-4671 |
| Comments |
| Comment by roberto spadim [ 2013-06-18 ] |
|
from Jean Weisbuch added a comment Another idea would be to add a query cache settings (query_cache_type=3 for example) to only cache queries that involved filesort and non-indexed rows retreival. With these options, only long/expensive queries would be put in cache, it surely wouldnt solve the cache cleaning but it could limit the number of entries in the cache and ease the cleanup process. |