Bug #60560 | insert and query cache | ||
---|---|---|---|
Submitted: | 21 Mar 2011 3:49 | Modified: | 26 Mar 2011 10:13 |
Reporter: | Roberto Spadim (Basic Quality Contributor) | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Server: Query Cache | Severity: | S4 (Feature request) |
Version: | any | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | insert, qc, query cache |
[21 Mar 2011 3:49]
Roberto Spadim
[21 Mar 2011 4:28]
Roberto Spadim
changed to quey cache category
[21 Mar 2011 5:31]
Valeriy Kravchuk
Current limitation is described in the manual, http://dev.mysql.com/doc/refman/5.5/en/query-cache-operation.html: "The cache is not used for queries of the following types: - Queries that are a subquery of an outer query " Here we have a request to remove this limitation.
[26 Mar 2011 10:13]
Davi Arnaut
This is far from possible in the current query cache architecture. The current architecture caches packets that are sent to the user, not intermediate results. A query cache is intended to cache results that are sent to a user, not server internal intermediate results. Also, the caching and strategy of a INSERT SELECT operates on a completely different level. There much different caches opportunities and strategies in the caching of intermediate results.
[26 Mar 2011 10:26]
Davi Arnaut
Also, the SELECT part of a INSERT ... SELECT has side-effects (e.g. locking) that differ it from the effects of of a plain SELECT or the SELECT part of a CREATE TABLE ... SELECT. So, they all aren't exactly the same.