mariadb/mysql-test/t/ndb_cache.test

33 lines
769 B
Text
Raw Normal View History

-- source include/have_query_cache.inc
-- source include/have_ndb.inc
2005-04-19 17:23:49 +02:00
-- source include/not_embedded.inc
set GLOBAL query_cache_size=1355776;
reset query cache;
flush status;
--disable_warnings
drop table if exists t1,t2;
--enable_warnings
CREATE TABLE t1 (a int) ENGINE=ndbcluster;
CREATE TABLE t2 (a int);
select * from t1;
show status like "Qcache_queries_in_cache";
show status like "Qcache_inserts";
show status like "Qcache_hits";
select * from t2;
show status like "Qcache_queries_in_cache";
show status like "Qcache_inserts";
show status like "Qcache_hits";
select * from t1;
select * from t2;
show status like "Qcache_queries_in_cache";
show status like "Qcache_inserts";
show status like "Qcache_hits";
drop table t1, t2;
SET GLOBAL query_cache_size=0;