Bug #55032 | Query cache sometime insert queries to cache, but doenn't find this queries. | ||
---|---|---|---|
Submitted: | 6 Jul 2010 16:52 | Modified: | 7 Jul 2017 9:45 |
Reporter: | Oleg Tsarev | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Query Cache | Severity: | S3 (Non-critical) |
Version: | All versions (5.1.x, 5.5.x) | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[6 Jul 2010 16:52]
Oleg Tsarev
[7 Jul 2010 4:04]
Valeriy Kravchuk
Thank you for the bug report. Verified on Mac OS X: mysql> show status like 'Qcache%'; +-------------------------+---------+ | Variable_name | Value | +-------------------------+---------+ | Qcache_free_blocks | 1 | | Qcache_free_memory | 8379584 | | Qcache_hits | 7 | | Qcache_inserts | 2 | | Qcache_lowmem_prunes | 0 | | Qcache_not_cached | 681 | | Qcache_queries_in_cache | 0 | | Qcache_total_blocks | 1 | +-------------------------+---------+ 8 rows in set (0.00 sec) mysql> ( SELECT * from t1 ); +------+ | a | +------+ | 1 | | 2 | | 3 | +------+ 3 rows in set (0.00 sec) mysql> ( SELECT * from t1 ); +------+ | a | +------+ | 1 | | 2 | | 3 | +------+ 3 rows in set (0.00 sec) mysql> show status like 'Qcache%'; +-------------------------+---------+ | Variable_name | Value | +-------------------------+---------+ | Qcache_free_blocks | 1 | | Qcache_free_memory | 8378048 | | Qcache_hits | 7 | | Qcache_inserts | 3 | | Qcache_lowmem_prunes | 0 | | Qcache_not_cached | 682 | | Qcache_queries_in_cache | 1 | | Qcache_total_blocks | 4 | +-------------------------+---------+ 8 rows in set (0.00 sec) ...
[7 Jul 2010 16:55]
Oleg Tsarev
Patch fot this in single file: http://bazaar.launchpad.net/~percona-dev/percona-server/release-5.1.48-12/annotate/head%3A...
[13 Jul 2010 1:12]
Omer Barnir
triage: setting tag to SRMRTBD
[7 Jul 2017 9:45]
Erlend Dahl
MySQL will no longer invest in the query cache, see: http://mysqlserverteam.com/mysql-8-0-retiring-support-for-the-query-cache/