mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
fcf055a5eb
git-svn-id: file:///svn/mysql/tests/mysql-test@55006 c7de825b-a66e-492c-adef-691d508d4ae1
36 lines
No EOL
759 B
Text
36 lines
No EOL
759 B
Text
# do a lot of longblob insertions up to 32MB-4 in size with seq primary key
|
|
|
|
SET DEFAULT_STORAGE_ENGINE='tokudb';
|
|
|
|
--disable_warnings
|
|
drop table if exists t;
|
|
--enable_warnings
|
|
|
|
create table t (id int not null auto_increment primary key, v longblob not null);
|
|
|
|
select @@max_allowed_packet into @my_max_allowed_packet;
|
|
--disable_warnings
|
|
set global max_allowed_packet=100000000;
|
|
--enable_warnings
|
|
|
|
connect(conn1,localhost,root,,);
|
|
|
|
let $nrows=1000;
|
|
let $maxid=$nrows;
|
|
let $maxblob=32*1024*1024;
|
|
while ($nrows) {
|
|
eval insert into t (v) values (repeat('a',($maxblob-4)*rand()));
|
|
dec $nrows;
|
|
}
|
|
|
|
connection default;
|
|
disconnect conn1;
|
|
set global max_allowed_packet=@my_max_allowed_packet;
|
|
|
|
check table t;
|
|
|
|
optimize table t;
|
|
|
|
check table t;
|
|
|
|
drop table t; |