Skip to content

Commit

Permalink
Workaround for PS-5865
Browse files Browse the repository at this point in the history
  • Loading branch information
hrvojem committed Aug 15, 2019
1 parent a10b5d5 commit 708b8cf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions rocksdb_test.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
USE world3;
ALTER TABLE City DROP FOREIGN KEY city_ibfk_1;
ALTER TABLE City Engine=RocksDB;
OPTIMIZE TABLE City;
SHOW CREATE TABLE City;
CREATE TABLE `CityRocks` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`Name` char(35) NOT NULL DEFAULT '',
`CountryCode` char(3) NOT NULL DEFAULT '',
`District` char(20) NOT NULL DEFAULT '',
`Population` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`),
KEY `CountryCode` (`CountryCode`)
);
INSERT INTO CityRocks SELECT * FROM City;
-- ALTER TABLE City Engine=RocksDB;
OPTIMIZE TABLE CityRocks;
SHOW CREATE TABLE CityRocks;

0 comments on commit 708b8cf

Please sign in to comment.