mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
Instead of writing the high-level redo log records MLOG_LIST_END_COPY_CREATED, MLOG_COMP_LIST_END_COPY_CREATED write log for each individual insert of a record. page_copy_rec_list_end_to_created_page(): Remove. This will improve the fill factor of some pages. Adjust some tests accordingly. PageBulk::init(), PageBulk::finish(): Avoid setting bogus limits to PAGE_HEAP_TOP and PAGE_N_DIR_SLOTS. Avoid accessor functions that would enforce these limits before the correct ones are set at the end of PageBulk::finish().
98 lines
4.0 KiB
Plaintext
98 lines
4.0 KiB
Plaintext
set global innodb_compression_algorithm = snappy;
|
|
create table innodb_normal (c1 int not null auto_increment primary key, b char(200)) engine=innodb;
|
|
create table innodb_page_compressed1 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=1;
|
|
create table innodb_page_compressed2 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=2;
|
|
create table innodb_page_compressed3 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=3;
|
|
create table innodb_page_compressed4 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=4;
|
|
create table innodb_page_compressed5 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=5;
|
|
create table innodb_page_compressed6 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=6;
|
|
create table innodb_page_compressed7 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=7;
|
|
create table innodb_page_compressed8 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=8;
|
|
create table innodb_page_compressed9 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=9;
|
|
select count(*) from innodb_page_compressed1;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed3;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed4;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed5;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed6;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed6;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed7;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed8;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed9;
|
|
count(*)
|
|
10000
|
|
# innodb_normal expected FOUND
|
|
FOUND 24000 /AaAaAaAa/ in innodb_normal.ibd
|
|
# innodb_page_compressed1 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed1.ibd
|
|
# innodb_page_compressed2 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed2.ibd
|
|
# innodb_page_compressed3 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed3.ibd
|
|
# innodb_page_compressed4 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed4.ibd
|
|
# innodb_page_compressed5 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed5.ibd
|
|
# innodb_page_compressed6 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed6.ibd
|
|
# innodb_page_compressed7 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed7.ibd
|
|
# innodb_page_compressed8 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed8.ibd
|
|
# innodb_page_compressed9 page compressed expected NOT FOUND
|
|
NOT FOUND /AaAaAaAa/ in innodb_page_compressed9.ibd
|
|
# restart
|
|
select count(*) from innodb_page_compressed1;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed3;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed4;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed5;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed6;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed6;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed7;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed8;
|
|
count(*)
|
|
10000
|
|
select count(*) from innodb_page_compressed9;
|
|
count(*)
|
|
10000
|
|
drop table innodb_normal;
|
|
drop table innodb_page_compressed1;
|
|
drop table innodb_page_compressed2;
|
|
drop table innodb_page_compressed3;
|
|
drop table innodb_page_compressed4;
|
|
drop table innodb_page_compressed5;
|
|
drop table innodb_page_compressed6;
|
|
drop table innodb_page_compressed7;
|
|
drop table innodb_page_compressed8;
|
|
drop table innodb_page_compressed9;
|
|
#done
|