SELECT , MySQL .
, , :
> SHOW GLOBAL STATUS LIKE 'Qcache_hits';
+---------------+--------+
| Variable_name | Value |
+---------------+--------+
| Qcache_hits | 735740 |
+---------------+--------+
1 row in set (0.00 sec)
> SHOW GLOBAL STATUS LIKE 'Com_select';
+---------------+---------+
| Variable_name | Value |
+---------------+---------+
| Com_select | 5644038 |
+---------------+---------+
1 row in set (0.00 sec)
Qcache_hits / (Qcache_hits + Com_select)
735740 / (735740 + 5644038) = 0.1153
, 11% .
% , memcached.
MySQL ( , ). , ( , ), . , memcached , , MySQL.
. , (!)
, , :
> SHOW GLOBAL VARIABLES LIKE '%cache';
have_query_cache = YES query_cache_size > 0 .