Skip to content

Commit

Permalink
Changed TokuDB to use new session variable for compression
Browse files Browse the repository at this point in the history
  • Loading branch information
hrvojem committed Nov 27, 2018
1 parent 37fde39 commit b261851
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tokudb_compression.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
USE world2;
ALTER TABLE City DROP FOREIGN KEY city_ibfk_1;
SET SESSION tokudb_row_format = TOKUDB_LZMA;
ALTER TABLE City Engine=TokuDB;
ALTER TABLE City ROW_FORMAT=TOKUDB_ZLIB;
OPTIMIZE TABLE City;
SHOW CREATE TABLE City;
ALTER TABLE City ROW_FORMAT=TOKUDB_QUICKLZ;

SET SESSION tokudb_row_format = TOKUDB_ZLIB;
ALTER TABLE City;
OPTIMIZE TABLE City;
SHOW CREATE TABLE City;
ALTER TABLE City ROW_FORMAT=TOKUDB_LZMA;

SET SESSION tokudb_row_format = TOKUDB_QUICKLZ;
ALTER TABLE City;
OPTIMIZE TABLE City;
SHOW CREATE TABLE City;
ALTER TABLE City ROW_FORMAT=TOKUDB_SNAPPY;

SET SESSION tokudb_row_format = TOKUDB_SNAPPY;
ALTER TABLE City;
OPTIMIZE TABLE City;
SHOW CREATE TABLE City;

0 comments on commit b261851

Please sign in to comment.