diff options
author | unknown <brian@avenger.(none)> | 2004-11-30 02:52:14 -0800 |
---|---|---|
committer | unknown <brian@avenger.(none)> | 2004-11-30 02:52:14 -0800 |
commit | 9f726d99d02feb3b04bbf4612cbd9e0e1c505e3a (patch) | |
tree | f1bd006f9e3492e0f8e24e15e6f0415f2a156dc9 /mysql-test/t/archive.test | |
parent | 30c54408a1bd538490f11d4067373e283009b8f7 (diff) | |
download | mariadb-git-9f726d99d02feb3b04bbf4612cbd9e0e1c505e3a.tar.gz |
Changes to support optimized bulk inserts. This will solve the problem of selects occurring during a bulk insert, and causing the compression factor to drop.
mysql-test/r/archive.result:
Updated result set for changes amde to support delayed insert and bulk insert optimizations.
mysql-test/t/archive.test:
Test cases to test bulk insert statements and delayed insert syntax.
sql/examples/ha_archive.cc:
Added methods needed for bulk operations to be optimized. Bulk inserts now do not trigger the file as dirty until they are complete. A normal insert though can still cause them to be synced though since it is not effected by the flag. Removed share variable to determine if row count is right or not (it should not be treated as an upper end estimate).
sql/examples/ha_archive.h:
Removed share variable for delayed flag since it is no longer needed.
Added flag in table instance to know if a bulk insert is happening.
Added method declarations for bulk insert optimizations.
Diffstat (limited to 'mysql-test/t/archive.test')
-rw-r--r-- | mysql-test/t/archive.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/archive.test b/mysql-test/t/archive.test index f55aea6e104..e710de7b35e 100644 --- a/mysql-test/t/archive.test +++ b/mysql-test/t/archive.test @@ -1299,4 +1299,15 @@ INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily',''); SELECT * FROM t2; OPTIMIZE TABLE t2; SELECT * FROM t2; + +# +# Test bulk inserts +INSERT INTO t2 VALUES (1,000001,00,'Omaha','teethe','neat','') , (2,011401,37,'breaking','dreaded','Steinberg','W') , (3,011402,37,'Romans','scholastics','jarring','') , (4,011403,37,'intercepted','audiology','tinily',''); +SELECT * FROM t2; + +# Just test syntax, we will never know if the out put is right or wrong +INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily',''); +# +# Cleanup, test is over +# drop table t1, t2; |