From bad1440325ba2c96530408fe2fd6484fc1c7c290 Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 18 Jun 2021 13:16:51 +0300 Subject: [PATCH] Speed up of innodb_gis.update_root test 10x by adding BEGIN/COMMIT --- mysql-test/suite/innodb_gis/r/update_root.result | 4 ++++ mysql-test/suite/innodb_gis/t/update_root.test | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mysql-test/suite/innodb_gis/r/update_root.result b/mysql-test/suite/innodb_gis/r/update_root.result index a39910818da..fe43fe79f2f 100644 --- a/mysql-test/suite/innodb_gis/r/update_root.result +++ b/mysql-test/suite/innodb_gis/r/update_root.result @@ -7,10 +7,14 @@ insert into t1 values (i, Point(i, i)); set i = i + 1; end while; end| +BEGIN; CALL insert_t1(70000); +COMMIT; +BEGIN; CALL insert_t1(90); CALL insert_t1(90); CALL insert_t1(83); +COMMIT; insert into t1 values (0, Point(0.9, 0.9)); check table t1; Table Op Msg_type Msg_text diff --git a/mysql-test/suite/innodb_gis/t/update_root.test b/mysql-test/suite/innodb_gis/t/update_root.test index c6d3ba60650..9fd2b36d311 100644 --- a/mysql-test/suite/innodb_gis/t/update_root.test +++ b/mysql-test/suite/innodb_gis/t/update_root.test @@ -26,11 +26,15 @@ end| delimiter ;| # Test level 3 rtree. +BEGIN; CALL insert_t1(70000); +COMMIT; +BEGIN; CALL insert_t1(90); CALL insert_t1(90); CALL insert_t1(83); +COMMIT; insert into t1 values (0, Point(0.9, 0.9));