1 drop table if exists t1, t2;
2 == Connected to server1 ==
3 set GLOBAL query_cache_type=on;
4 set GLOBAL query_cache_size=1355776;
5 set GLOBAL ndb_cache_check_time=1;
8 == Connected to server2 ==
9 set GLOBAL query_cache_type=on;
10 set GLOBAL query_cache_size=1355776;
11 set GLOBAL ndb_cache_check_time=1;
14 == Connected to server1 ==
15 create table t1 (a int) engine=ndbcluster;
16 create table t2 (a int) engine=ndbcluster;
17 insert into t1 value (2);
18 insert into t2 value (3);
22 select a != 3 from t1;
28 show status like "Qcache_queries_in_cache";
30 Qcache_queries_in_cache 3
31 show status like "Qcache_inserts";
34 show status like "Qcache_hits";
37 == Connected to server2 ==
38 show status like "Qcache_queries_in_cache";
40 Qcache_queries_in_cache 0
41 show status like "Qcache_inserts";
44 show status like "Qcache_hits";
50 show status like "Qcache_queries_in_cache";
52 Qcache_queries_in_cache 1
53 show status like "Qcache_inserts";
56 show status like "Qcache_hits";
59 update t1 set a=3 where a=2;
60 == Connected to server1 ==
64 show status like "Qcache_queries_in_cache";
66 Qcache_queries_in_cache 3
68 set GLOBAL query_cache_size=0;
69 set GLOBAL ndb_cache_check_time=0;
72 set GLOBAL query_cache_size=0;
73 set GLOBAL ndb_cache_check_time=0;