55 lines
2.1 KiB
Plaintext
55 lines
2.1 KiB
Plaintext
SET @tx_isolation= @@global.tx_isolation;
|
|
Warnings:
|
|
Warning 1287 '@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead
|
|
SET GLOBAL TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
INSERT INTO cache_policies VALUES("cache_policy", "innodb_only",
|
|
"innodb_only", "innodb_only", "innodb_only");
|
|
INSERT INTO config_options VALUES("separator", "|");
|
|
INSERT INTO containers VALUES ("desc_t1", "test", "t1",
|
|
"c1", "c2,c21", "c3", "c4", "c5", "PRIMARY");
|
|
USE test;
|
|
DROP TABLE IF EXISTS t1;
|
|
CREATE TABLE t1 (c1 VARCHAR(30) NOT NULL DEFAULT '',
|
|
c2 CHAR(120) NOT NULL DEFAULT '',
|
|
c21 CHAR(60) NOT NULL DEFAULT '',
|
|
primary key(c1))
|
|
ENGINE = INNODB DEFAULT CHARSET UTF8;
|
|
INSERT INTO t1 VALUES ('1', 'Darmstadt', 'City');
|
|
INSERT INTO t1 VALUES ('2', 'Berlin', 'Mitte');
|
|
INSERT INTO t1 VALUES ('3', 'Cottbus', 'West');
|
|
INSERT INTO t1 VALUES ('4', 'München', 'Süd');
|
|
INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so';
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`c1` varchar(30) NOT NULL DEFAULT '',
|
|
`c2` char(120) NOT NULL DEFAULT '',
|
|
`c21` char(60) NOT NULL DEFAULT '',
|
|
PRIMARY KEY (`c1`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
|
SELECT c1, c2, c21 FROM t1;
|
|
c1 c2 c21
|
|
1 Darmstadt City
|
|
2 Berlin Mitte
|
|
3 Cottbus West
|
|
4 München Süd
|
|
SELECT SLEEP(2);
|
|
SLEEP(2)
|
|
0
|
|
Here the memcached results before set:
|
|
Darmstadt |City
|
|
Here the memcached results after set:
|
|
Beijing |City
|
|
SELECT c1, c2, c21 FROM t1;
|
|
c1 c2 c21
|
|
1 Beijing City
|
|
2 Berlin Mitte
|
|
3 Cottbus West
|
|
4 München Süd
|
|
DROP TABLE t1;
|
|
UNINSTALL PLUGIN daemon_memcached;
|
|
DROP DATABASE innodb_memcache;
|
|
SET @@global.tx_isolation= @tx_isolation;
|
|
Warnings:
|
|
Warning 1287 '@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead
|