Details
-
Type:
Task
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Fix Version/s: 10.2
-
Component/s: None
-
Labels:
Description
It would be a useful feature to have a configurable ignore list for the Query Cache. Much like the replication ignore list, one could specify a series of database/table that are not involved in caching. If a given query involves any such of the database/tables in the list, its results will not be cached.
I have several tables that have pretty static data, but one table with lots of updates/inserts (cache invalidation). It would be ideal if the queries that involve that table always skip the cache. I can obviously do this with hints, but I would like have this feature to make it seamless.
Gliffy Diagrams
Attachments
Issue Links
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
What do you want to achieve with that? Save memory by not storing garbage in the query cache? Or make queries to this table faster, because they won't have query cache overhead?
The first is possible. The second — not really. SELECT queries are looked up in the query cache before they are parsed. When the server checks whether a query is cached, it does not know yet what tables this query uses. That is, all SELECT queries will be looked up.
But your ignore list could cause certain queries not to be stored in the query cache. This is doable, yes. But is it what you want?