mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
ea646dce60
sql/ha_ndbcluster.h: fixed layout prohibit using query cache with ndb tables sql/handler.h: new caching type sql/sql_cache.cc: support of new caching type (caching prohibited)
43 lines
980 B
Text
43 lines
980 B
Text
set GLOBAL query_cache_size=1355776;
|
|
reset query cache;
|
|
flush status;
|
|
drop table if exists t1,t2;
|
|
CREATE TABLE t1 (a int) ENGINE=ndbcluster;
|
|
CREATE TABLE t2 (a int);
|
|
select * from t1;
|
|
a
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 0
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 0
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 0
|
|
select * from t2;
|
|
a
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 1
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 1
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 0
|
|
select * from t1;
|
|
a
|
|
select * from t2;
|
|
a
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 1
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 1
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 1
|
|
drop table t1, t2;
|
|
SET GLOBAL query_cache_size=0;
|