1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-3997: Querying a Cassandra table on a server with query cache enabled is likely to cause problems

- Disable query cache for Cassandra tables.
This commit is contained in:
Sergey Petrunya
2013-02-04 10:14:20 +04:00
parent 0abbcf7b00
commit 6ae14e6cd2
4 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,16 @@
drop table if exists t1, t2;
create table t1 (rowkey int primary key, a int) engine=cassandra
thrift_host='localhost' keyspace='mariadbtest2' column_family='cf1';
create table t2 like t1;
set global query_cache_size=1024*1024;
select * from t1;
rowkey a
insert into t2 values (1,1);
select * from t1;
rowkey a
1 1
select sql_no_cache * from t1;
rowkey a
1 1
drop table t1,t2;
set global QUERY_CACHE_SIZE=0;