| 1 |
--echo # Create table & Index |
| 2 |
|
| 3 |
# Separate CREATE INDEX loop leads to delete + insert of SDI records. |
| 4 |
# So if SDI record is not purged before next CREATE index, extra page |
| 5 |
# could be occupied. Since the aim is to test physical ibd size, |
| 6 |
# we try to remove dependency on purge by creating all indexes along |
| 7 |
# with CREATE TABLE |
| 8 |
|
| 9 |
eval CREATE TABLE tab5(col_1 TINYBLOB, col_2 TINYTEXT,col_3 BLOB, |
| 10 |
col_4 TEXT,col_5 MEDIUMBLOB,col_6 MEDIUMTEXT, |
| 11 |
col_7 LONGBLOB,col_8 LONGTEXT,col_9 VARCHAR(255), |
| 12 |
KEY idx1(col_1(10)), |
| 13 |
KEY idx2(col_2(10)), |
| 14 |
KEY idx3(col_3(10)), |
| 15 |
KEY idx4(col_4(10)), |
| 16 |
KEY idx5(col_5(10)), |
| 17 |
KEY idx6(col_6(10)), |
| 18 |
KEY idx7(col_7(10)), |
| 19 |
KEY idx8(col_8(10)), |
| 20 |
KEY idx9(col_9(10)) |
| 21 |
)ENGINE=INNODB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=$block_size; |