1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Speed up of innodb_gis.update_root test 10x by adding BEGIN/COMMIT

This commit is contained in:
Monty
2021-06-18 13:16:51 +03:00
parent 93f5d40656
commit bad1440325
2 changed files with 8 additions and 0 deletions

View File

@ -7,10 +7,14 @@ insert into t1 values (i, Point(i, i));
set i = i + 1; set i = i + 1;
end while; end while;
end| end|
BEGIN;
CALL insert_t1(70000); CALL insert_t1(70000);
COMMIT;
BEGIN;
CALL insert_t1(90); CALL insert_t1(90);
CALL insert_t1(90); CALL insert_t1(90);
CALL insert_t1(83); CALL insert_t1(83);
COMMIT;
insert into t1 values (0, Point(0.9, 0.9)); insert into t1 values (0, Point(0.9, 0.9));
check table t1; check table t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text

View File

@ -26,11 +26,15 @@ end|
delimiter ;| delimiter ;|
# Test level 3 rtree. # Test level 3 rtree.
BEGIN;
CALL insert_t1(70000); CALL insert_t1(70000);
COMMIT;
BEGIN;
CALL insert_t1(90); CALL insert_t1(90);
CALL insert_t1(90); CALL insert_t1(90);
CALL insert_t1(83); CALL insert_t1(83);
COMMIT;
insert into t1 values (0, Point(0.9, 0.9)); insert into t1 values (0, Point(0.9, 0.9));