mirror of
https://github.com/MariaDB/server.git
synced 2025-04-26 11:49:09 +03:00
- InnoDB reserves the free extents unnecessarily during blob page allocation even though btr_page_alloc() can handle reserving the extent when the existing ran out of pages to be used.
21 lines
617 B
Plaintext
21 lines
617 B
Plaintext
#
|
|
# Bug #21950389 SMALL TABLESPACES WITH BLOBS TAKE UP TO 80 TIMES MORE
|
|
# SPACE IN 5.7 THAN IN 5.6
|
|
#
|
|
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
|
# bytes: 65536
|
|
INSERT INTO t1 SELECT * FROM seq_1_to_25000;
|
|
# bytes: 9437184
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB) ENGINE=InnoDB;
|
|
# bytes: 65536
|
|
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
|
|
# bytes: 2097152
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB)
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
|
|
# bytes: 65536
|
|
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
|
|
# bytes: 65536
|
|
DROP TABLE t1;
|