acts_as_nested_interval 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13889,3 +13889,1820 @@
13889
13889
  SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "3"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
13890
13890
   (0.0ms) RELEASE SAVEPOINT active_record_1
13891
13891
   (0.1ms) rollback transaction
13892
+  (0.1ms) begin transaction
13893
+  (0.1ms) SAVEPOINT active_record_1
13894
+ SQL (2.8ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13896
+  (0.0ms) SAVEPOINT active_record_1
13897
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
13898
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
13899
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13901
+  (0.0ms) SAVEPOINT active_record_1
13902
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
13903
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
13904
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13906
+  (0.0ms) SAVEPOINT active_record_1
13907
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
13908
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
13909
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
13910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13911
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL)
13912
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 1 AND lftp = 0)
13913
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
13914
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
13915
+  (0.1ms) rollback transaction
13916
+  (0.1ms) begin transaction
13917
+  (0.0ms) SAVEPOINT active_record_1
13918
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13920
+  (0.0ms) SAVEPOINT active_record_1
13921
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
13922
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
13923
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
13924
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13926
+  (0.1ms) rollback transaction
13927
+  (0.0ms) begin transaction
13928
+  (0.0ms) SAVEPOINT active_record_1
13929
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13930
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
13931
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
13932
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13934
+  (0.1ms) rollback transaction
13935
+  (0.0ms) begin transaction
13936
+  (0.0ms) SAVEPOINT active_record_1
13937
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13939
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
13940
+  (0.1ms) rollback transaction
13941
+  (0.0ms) begin transaction
13942
+  (0.0ms) SAVEPOINT active_record_1
13943
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13945
+  (0.0ms) SAVEPOINT active_record_1
13946
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
13947
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
13948
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13950
+  (0.0ms) SAVEPOINT active_record_1
13951
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
13952
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
13953
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13955
+  (0.0ms) SAVEPOINT active_record_1
13956
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
13957
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
13958
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
13959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13960
+  (0.1ms) rollback transaction
13961
+  (0.0ms) begin transaction
13962
+  (0.0ms) SAVEPOINT active_record_1
13963
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13964
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13965
+  (0.0ms) SAVEPOINT active_record_1
13966
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
13967
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
13968
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13970
+  (0.0ms) SAVEPOINT active_record_1
13971
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
13972
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
13973
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13975
+  (0.0ms) SAVEPOINT active_record_1
13976
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
13977
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
13978
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
13979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13980
+  (0.1ms) rollback transaction
13981
+  (0.0ms) begin transaction
13982
+  (0.0ms) SAVEPOINT active_record_1
13983
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13985
+  (0.0ms) SAVEPOINT active_record_1
13986
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
13987
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
13988
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13990
+  (0.0ms) SAVEPOINT active_record_1
13991
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
13992
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
13993
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
13994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13995
+  (0.0ms) SAVEPOINT active_record_1
13996
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
13997
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
13998
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
13999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14000
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
14001
+ "regions".lft BETWEEN 0.0 AND 1.0
14002
+ )
14003
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14004
+ "regions".lft BETWEEN 0.5 AND 1.0
14005
+ )
14006
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
14007
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
14008
+ )
14009
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
14010
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
14011
+ )
14012
+  (0.1ms) rollback transaction
14013
+  (0.0ms) begin transaction
14014
+  (0.0ms) SAVEPOINT active_record_1
14015
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14016
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14017
+  (0.0ms) SAVEPOINT active_record_1
14018
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14019
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14020
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14022
+  (0.0ms) SAVEPOINT active_record_1
14023
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14024
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14025
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14027
+  (0.0ms) SAVEPOINT active_record_1
14028
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14029
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14030
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14032
+  (0.0ms) SAVEPOINT active_record_1
14033
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2
14034
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14035
+  (0.1ms) rollback transaction
14036
+  (0.0ms) begin transaction
14037
+  (0.1ms) SAVEPOINT active_record_1
14038
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", ""], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14040
+  (0.0ms) SAVEPOINT active_record_1
14041
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14042
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14043
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14045
+  (0.0ms) SAVEPOINT active_record_1
14046
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14047
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14048
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", ""], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14050
+  (0.0ms) SAVEPOINT active_record_1
14051
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
14052
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
14053
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.4], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14055
+  (0.0ms) SAVEPOINT active_record_1
14056
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
14057
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
14058
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.375], ["lftp", 3], ["lftq", 8], ["name", ""], ["region_id", 3], ["rgt", 0.4], ["rgtp", 2], ["rgtq", 5]]
14059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14060
+  (0.0ms) SAVEPOINT active_record_1
14061
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
14062
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
14063
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38461538461538464], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 5], ["rgt", 0.4], ["rgtp", 2], ["rgtq", 5]]
14064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14065
+  (0.0ms) SAVEPOINT active_record_1
14066
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
14067
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
14068
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38095238095238093], ["lftp", 8], ["lftq", 21], ["name", ""], ["region_id", 5], ["rgt", 0.38461538461538464], ["rgtp", 5], ["rgtq", 13]]
14069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14070
+  (0.0ms) SAVEPOINT active_record_1
14071
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
14072
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
14073
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38235294117647056], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 7], ["rgt", 0.38461538461538464], ["rgtp", 5], ["rgtq", 13]]
14074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14075
+  (0.0ms) SAVEPOINT active_record_1
14076
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
14077
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
14078
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38181818181818183], ["lftp", 21], ["lftq", 55], ["name", ""], ["region_id", 7], ["rgt", 0.38235294117647056], ["rgtp", 13], ["rgtq", 34]]
14079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14080
+  (0.0ms) SAVEPOINT active_record_1
14081
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
14082
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
14083
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38202247191011235], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 9], ["rgt", 0.38235294117647056], ["rgtp", 13], ["rgtq", 34]]
14084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14085
+  (0.0ms) SAVEPOINT active_record_1
14086
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
14087
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
14088
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819444444444444], ["lftp", 55], ["lftq", 144], ["name", ""], ["region_id", 9], ["rgt", 0.38202247191011235], ["rgtp", 34], ["rgtq", 89]]
14089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14090
+  (0.0ms) SAVEPOINT active_record_1
14091
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
14092
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
14093
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38197424892703863], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 11], ["rgt", 0.38202247191011235], ["rgtp", 34], ["rgtq", 89]]
14094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14095
+  (0.0ms) SAVEPOINT active_record_1
14096
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
14097
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
14098
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819628647214854], ["lftp", 144], ["lftq", 377], ["name", ""], ["region_id", 11], ["rgt", 0.38197424892703863], ["rgtp", 89], ["rgtq", 233]]
14099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14100
+  (0.0ms) SAVEPOINT active_record_1
14101
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
14102
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
14103
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819672131147541], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 13], ["rgt", 0.38197424892703863], ["rgtp", 89], ["rgtq", 233]]
14104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14105
+  (0.0ms) SAVEPOINT active_record_1
14106
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
14107
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
14108
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819655521783181], ["lftp", 377], ["lftq", 987], ["name", ""], ["region_id", 13], ["rgt", 0.3819672131147541], ["rgtp", 233], ["rgtq", 610]]
14109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14110
+  (0.0ms) SAVEPOINT active_record_1
14111
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
14112
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
14113
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196618659987475], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 15], ["rgt", 0.3819672131147541], ["rgtp", 233], ["rgtq", 610]]
14114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14115
+  (0.0ms) SAVEPOINT active_record_1
14116
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
14117
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
14118
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196594427244585], ["lftp", 987], ["lftq", 2584], ["name", ""], ["region_id", 15], ["rgt", 0.38196618659987475], ["rgtp", 610], ["rgtq", 1597]]
14119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14120
+  (0.0ms) SAVEPOINT active_record_1
14121
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
14122
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
14123
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196603683329344], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 17], ["rgt", 0.38196618659987475], ["rgtp", 610], ["rgtq", 1597]]
14124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14125
+  (0.0ms) SAVEPOINT active_record_1
14126
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
14127
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
14128
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660014781966], ["lftp", 2584], ["lftq", 6765], ["name", ""], ["region_id", 17], ["rgt", 0.38196603683329344], ["rgtp", 1597], ["rgtq", 4181]]
14129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14130
+  (0.0ms) SAVEPOINT active_record_1
14131
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
14132
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
14133
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601498264204], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 19], ["rgt", 0.38196603683329344], ["rgtp", 1597], ["rgtq", 4181]]
14134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14135
+  (0.0ms) SAVEPOINT active_record_1
14136
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
14137
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
14138
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196600982440293], ["lftp", 6765], ["lftq", 17711], ["name", ""], ["region_id", 19], ["rgt", 0.38196601498264204], ["rgtp", 4181], ["rgtq", 10946]]
14139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14140
+  (0.0ms) SAVEPOINT active_record_1
14141
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
14142
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
14143
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601179467493], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 21], ["rgt", 0.38196601498264204], ["rgtp", 4181], ["rgtq", 10946]]
14144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14145
+  (0.0ms) SAVEPOINT active_record_1
14146
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
14147
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
14148
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.381966011042098], ["lftp", 17711], ["lftq", 46368], ["name", ""], ["region_id", 21], ["rgt", 0.38196601179467493], ["rgtp", 10946], ["rgtq", 28657]]
14149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14150
+  (0.0ms) SAVEPOINT active_record_1
14151
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
14152
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
14153
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660113295568], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 23], ["rgt", 0.38196601179467493], ["rgtp", 10946], ["rgtq", 28657]]
14154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14155
+  (0.0ms) SAVEPOINT active_record_1
14156
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
14157
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
14158
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112197573], ["lftp", 46368], ["lftq", 121393], ["name", ""], ["region_id", 23], ["rgt", 0.3819660113295568], ["rgtp", 28657], ["rgtq", 75025]]
14159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14160
+  (0.0ms) SAVEPOINT active_record_1
14161
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
14162
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
14163
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.381966011261697], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 25], ["rgt", 0.3819660113295568], ["rgtp", 28657], ["rgtq", 75025]]
14164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14165
+  (0.0ms) SAVEPOINT active_record_1
14166
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
14167
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
14168
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112456775], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 25], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
14169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14170
+  (0.0ms) SAVEPOINT active_record_1
14171
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
14172
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
14173
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125179636], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 27], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
14174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14175
+  (0.0ms) SAVEPOINT active_record_1
14176
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
14177
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
14178
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601124945917], ["lftp", 317811], ["lftq", 832040], ["name", ""], ["region_id", 27], ["rgt", 0.38196601125179636], ["rgtp", 196418], ["rgtq", 514229]]
14179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14180
+  (0.0ms) SAVEPOINT active_record_1
14181
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
14182
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
14183
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112503519], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 29], ["rgt", 0.38196601125179636], ["rgtp", 196418], ["rgtq", 514229]]
14184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14185
+  (0.0ms) SAVEPOINT active_record_1
14186
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
14187
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
14188
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112500109], ["lftp", 832040], ["lftq", 2178309], ["name", ""], ["region_id", 29], ["rgt", 0.3819660112503519], ["rgtp", 514229], ["rgtq", 1346269]]
14189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14190
+  (0.0ms) SAVEPOINT active_record_1
14191
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
14192
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
14193
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501411], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 31], ["rgt", 0.3819660112503519], ["rgtp", 514229], ["rgtq", 1346269]]
14194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14195
+  (0.0ms) SAVEPOINT active_record_1
14196
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
14197
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
14198
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112500914], ["lftp", 2178309], ["lftq", 5702887], ["name", ""], ["region_id", 31], ["rgt", 0.3819660112501411], ["rgtp", 1346269], ["rgtq", 3524578]]
14199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14200
+  (0.0ms) SAVEPOINT active_record_1
14201
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
14202
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
14203
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501104], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 33], ["rgt", 0.3819660112501411], ["rgtp", 1346269], ["rgtq", 3524578]]
14204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14205
+  (0.0ms) SAVEPOINT active_record_1
14206
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
14207
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
14208
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010315], ["lftp", 5702887], ["lftq", 14930352], ["name", ""], ["region_id", 33], ["rgt", 0.3819660112501104], ["rgtp", 3524578], ["rgtq", 9227465]]
14209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14210
+  (0.0ms) SAVEPOINT active_record_1
14211
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
14212
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
14213
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010593], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 35], ["rgt", 0.3819660112501104], ["rgtp", 3524578], ["rgtq", 9227465]]
14214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14215
+  (0.0ms) SAVEPOINT active_record_1
14216
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
14217
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
14218
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501049], ["lftp", 14930352], ["lftq", 39088169], ["name", ""], ["region_id", 35], ["rgt", 0.38196601125010593], ["rgtp", 9227465], ["rgtq", 24157817]]
14219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14220
+  (0.0ms) SAVEPOINT active_record_1
14221
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
14222
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
14223
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010526], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 37], ["rgt", 0.38196601125010593], ["rgtp", 9227465], ["rgtq", 24157817]]
14224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14225
+  (0.0ms) SAVEPOINT active_record_1
14226
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
14227
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
14228
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501051], ["lftp", 39088169], ["lftq", 102334155], ["name", ""], ["region_id", 37], ["rgt", 0.38196601125010526], ["rgtp", 24157817], ["rgtq", 63245986]]
14229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14230
+  (0.0ms) SAVEPOINT active_record_1
14231
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
14232
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
14233
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 39], ["rgt", 0.38196601125010526], ["rgtp", 24157817], ["rgtq", 63245986]]
14234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14235
+  (0.0ms) SAVEPOINT active_record_1
14236
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
14237
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
14238
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 102334155], ["lftq", 267914296], ["name", ""], ["region_id", 39], ["rgt", 0.38196601125010515], ["rgtp", 63245986], ["rgtq", 165580141]]
14239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14240
+  (0.0ms) SAVEPOINT active_record_1
14241
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
14242
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
14243
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 41], ["rgt", 0.38196601125010515], ["rgtp", 63245986], ["rgtq", 165580141]]
14244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14245
+  (0.0ms) SAVEPOINT active_record_1
14246
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
14247
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
14248
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 267914296], ["lftq", 701408733], ["name", ""], ["region_id", 41], ["rgt", 0.38196601125010515], ["rgtp", 165580141], ["rgtq", 433494437]]
14249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14250
+  (0.0ms) SAVEPOINT active_record_1
14251
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
14252
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
14253
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 43], ["rgt", 0.38196601125010515], ["rgtp", 165580141], ["rgtq", 433494437]]
14254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14255
+  (0.0ms) SAVEPOINT active_record_1
14256
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
14257
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
14258
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 701408733], ["lftq", 1836311903], ["name", ""], ["region_id", 43], ["rgt", 0.38196601125010515], ["rgtp", 433494437], ["rgtq", 1134903170]]
14259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14260
+  (0.1ms) rollback transaction
14261
+  (0.0ms) begin transaction
14262
+  (0.0ms) rollback transaction
14263
+  (0.0ms) begin transaction
14264
+  (0.0ms) SAVEPOINT active_record_1
14265
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14267
+  (0.0ms) SAVEPOINT active_record_1
14268
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14269
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14270
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14272
+  (0.0ms) SAVEPOINT active_record_1
14273
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14274
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14275
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14277
+  (0.0ms) SAVEPOINT active_record_1
14278
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14279
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14280
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14282
+  (0.0ms) SAVEPOINT active_record_1
14283
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14284
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14285
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
14286
+  (0.0ms) SAVEPOINT active_record_1
14287
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14288
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
14289
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14290
+  (0.0ms) SAVEPOINT active_record_1
14291
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14292
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14293
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14295
+  (0.0ms) SAVEPOINT active_record_1
14296
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14297
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
14298
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
14299
+ SQL (0.1ms) UPDATE "regions" SET
14300
+ rgtp = 0 * rgtp + 1 * rgtq,
14301
+ rgtq = -1 * rgtp + 3 * rgtq
14302
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14303
+ "regions".lft BETWEEN 0.5 AND 1.0
14304
+ )
14305
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14306
+ "regions".lft BETWEEN 0.5 AND 1.0
14307
+ )
14308
+ SQL (0.1ms) UPDATE "regions" SET
14309
+ lftp = 0 * lftp + 1 * lftq,
14310
+ lftq = -1 * lftp + 3 * lftq
14311
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14312
+ "regions".lft BETWEEN 0.5 AND 1.0
14313
+ )
14314
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14315
+ "regions".lft BETWEEN 0.5 AND 1.0
14316
+ )
14317
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
14318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14319
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
14320
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
14321
+  (0.1ms) rollback transaction
14322
+  (0.0ms) begin transaction
14323
+  (0.0ms) SAVEPOINT active_record_1
14324
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14325
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14327
+  (0.0ms) SAVEPOINT active_record_1
14328
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14329
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14330
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14332
+  (0.0ms) SAVEPOINT active_record_1
14333
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14334
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14336
+  (0.0ms) SAVEPOINT active_record_1
14337
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14338
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
14339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14340
+  (0.0ms) SAVEPOINT active_record_1
14341
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14342
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14343
+  (0.1ms) rollback transaction
14344
+  (0.1ms) begin transaction
14345
+  (0.0ms) SAVEPOINT active_record_1
14346
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14347
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14349
+  (0.0ms) SAVEPOINT active_record_1
14350
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14351
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14352
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14354
+  (0.0ms) SAVEPOINT active_record_1
14355
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14356
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14357
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14359
+  (0.0ms) SAVEPOINT active_record_1
14360
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14361
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14362
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14364
+  (0.0ms) SAVEPOINT active_record_1
14365
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14366
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14367
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.7142857142857143], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.75], ["rgtp", 3], ["rgtq", 4]]
14368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14369
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
14370
+  (0.1ms) rollback transaction
14371
+  (0.0ms) begin transaction
14372
+  (0.0ms) SAVEPOINT active_record_1
14373
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14374
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14376
+  (0.0ms) SAVEPOINT active_record_1
14377
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14378
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14379
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14381
+  (0.0ms) SAVEPOINT active_record_1
14382
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14383
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14385
+  (0.0ms) SAVEPOINT active_record_1
14386
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14387
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
14388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14389
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
14390
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
14391
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
14392
+  (0.0ms) SAVEPOINT active_record_1
14393
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
14394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14395
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
14396
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
14397
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14398
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
14399
+  (0.0ms) SAVEPOINT active_record_1
14400
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
14401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14402
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
14403
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
14404
+  (0.0ms) SAVEPOINT active_record_1
14405
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
14406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14407
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
14408
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
14409
+  (0.0ms) SAVEPOINT active_record_1
14410
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
14411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14412
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
14413
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
14414
+  (0.1ms) rollback transaction
14415
+  (0.0ms) begin transaction
14416
+  (0.0ms) SAVEPOINT active_record_1
14417
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14418
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14420
+  (0.0ms) SAVEPOINT active_record_1
14421
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14422
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14423
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14425
+  (0.0ms) SAVEPOINT active_record_1
14426
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14427
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14429
+  (0.0ms) SAVEPOINT active_record_1
14430
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14431
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
14432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14433
+  (0.0ms) SAVEPOINT active_record_1
14434
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
14435
+  (0.1ms) UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
14436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14437
+  (0.1ms) rollback transaction
14438
+  (0.0ms) begin transaction
14439
+  (0.0ms) SAVEPOINT active_record_1
14440
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14441
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14443
+  (0.0ms) SAVEPOINT active_record_1
14444
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14445
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14446
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14448
+  (0.0ms) SAVEPOINT active_record_1
14449
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14450
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", true], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14452
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
14453
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
14454
+ "regions".lft BETWEEN 0.5 AND 1.0
14455
+ )
14456
+  (0.1ms) rollback transaction
14457
+  (0.1ms) begin transaction
14458
+  (0.0ms) SAVEPOINT active_record_1
14459
+ Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14460
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14462
+  (0.0ms) SAVEPOINT active_record_1
14463
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14464
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14465
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14467
+  (0.0ms) SAVEPOINT active_record_1
14468
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14469
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14471
+  (0.0ms) SAVEPOINT active_record_1
14472
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14473
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
14474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14475
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
14476
+  (0.1ms) rollback transaction
14477
+  (0.0ms) begin transaction
14478
+  (0.0ms) SAVEPOINT active_record_1
14479
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14480
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14482
+  (0.0ms) SAVEPOINT active_record_1
14483
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14484
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "2"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14486
+  (0.0ms) SAVEPOINT active_record_1
14487
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14488
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "3"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
14489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14490
+  (0.1ms) rollback transaction
14491
+  (0.1ms) begin transaction
14492
+  (0.0ms) SAVEPOINT active_record_1
14493
+ SQL (3.3ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14494
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14495
+  (0.1ms) SAVEPOINT active_record_1
14496
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14497
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14498
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14500
+  (0.0ms) SAVEPOINT active_record_1
14501
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14502
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14503
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14505
+  (0.1ms) SAVEPOINT active_record_1
14506
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14507
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14508
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14510
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL)
14511
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 1 AND lftp = 0)
14512
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
14513
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
14514
+  (0.1ms) rollback transaction
14515
+  (0.1ms) begin transaction
14516
+  (0.0ms) SAVEPOINT active_record_1
14517
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14519
+  (0.0ms) SAVEPOINT active_record_1
14520
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
14521
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14522
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14523
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14525
+  (0.1ms) rollback transaction
14526
+  (0.0ms) begin transaction
14527
+  (0.0ms) SAVEPOINT active_record_1
14528
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14529
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14530
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14531
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14533
+  (0.1ms) rollback transaction
14534
+  (0.0ms) begin transaction
14535
+  (0.0ms) SAVEPOINT active_record_1
14536
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14538
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
14539
+  (0.1ms) rollback transaction
14540
+  (0.0ms) begin transaction
14541
+  (0.0ms) SAVEPOINT active_record_1
14542
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14544
+  (0.0ms) SAVEPOINT active_record_1
14545
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14546
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14547
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14549
+  (0.0ms) SAVEPOINT active_record_1
14550
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14551
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14552
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14554
+  (0.0ms) SAVEPOINT active_record_1
14555
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14556
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14557
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14559
+  (0.1ms) rollback transaction
14560
+  (0.0ms) begin transaction
14561
+  (0.0ms) SAVEPOINT active_record_1
14562
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14564
+  (0.0ms) SAVEPOINT active_record_1
14565
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14566
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14567
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14569
+  (0.0ms) SAVEPOINT active_record_1
14570
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14571
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14572
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14574
+  (0.0ms) SAVEPOINT active_record_1
14575
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14576
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14577
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14579
+  (0.1ms) rollback transaction
14580
+  (0.0ms) begin transaction
14581
+  (0.0ms) SAVEPOINT active_record_1
14582
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14584
+  (0.0ms) SAVEPOINT active_record_1
14585
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14586
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14587
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14589
+  (0.0ms) SAVEPOINT active_record_1
14590
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14591
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14592
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14594
+  (0.0ms) SAVEPOINT active_record_1
14595
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14596
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14597
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14599
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
14600
+ "regions".lft BETWEEN 0.0 AND 1.0
14601
+ )
14602
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14603
+ "regions".lft BETWEEN 0.5 AND 1.0
14604
+ )
14605
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
14606
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
14607
+ )
14608
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
14609
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
14610
+ )
14611
+  (0.1ms) rollback transaction
14612
+  (0.0ms) begin transaction
14613
+  (0.0ms) SAVEPOINT active_record_1
14614
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14616
+  (0.0ms) SAVEPOINT active_record_1
14617
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14618
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14619
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14621
+  (0.1ms) SAVEPOINT active_record_1
14622
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14623
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14624
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14626
+  (0.0ms) SAVEPOINT active_record_1
14627
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14628
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14629
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14631
+  (0.0ms) SAVEPOINT active_record_1
14632
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2
14633
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14634
+  (0.1ms) rollback transaction
14635
+  (0.0ms) begin transaction
14636
+  (0.1ms) SAVEPOINT active_record_1
14637
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", ""], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14639
+  (0.0ms) SAVEPOINT active_record_1
14640
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14641
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14642
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14644
+  (0.0ms) SAVEPOINT active_record_1
14645
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14646
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14647
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", ""], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14649
+  (0.0ms) SAVEPOINT active_record_1
14650
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
14651
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
14652
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.4], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14654
+  (0.0ms) SAVEPOINT active_record_1
14655
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
14656
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
14657
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.375], ["lftp", 3], ["lftq", 8], ["name", ""], ["region_id", 3], ["rgt", 0.4], ["rgtp", 2], ["rgtq", 5]]
14658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14659
+  (0.0ms) SAVEPOINT active_record_1
14660
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
14661
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
14662
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38461538461538464], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 5], ["rgt", 0.4], ["rgtp", 2], ["rgtq", 5]]
14663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14664
+  (0.0ms) SAVEPOINT active_record_1
14665
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
14666
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
14667
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38095238095238093], ["lftp", 8], ["lftq", 21], ["name", ""], ["region_id", 5], ["rgt", 0.38461538461538464], ["rgtp", 5], ["rgtq", 13]]
14668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14669
+  (0.0ms) SAVEPOINT active_record_1
14670
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
14671
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
14672
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38235294117647056], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 7], ["rgt", 0.38461538461538464], ["rgtp", 5], ["rgtq", 13]]
14673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14674
+  (0.0ms) SAVEPOINT active_record_1
14675
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
14676
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
14677
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38181818181818183], ["lftp", 21], ["lftq", 55], ["name", ""], ["region_id", 7], ["rgt", 0.38235294117647056], ["rgtp", 13], ["rgtq", 34]]
14678
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14679
+  (0.0ms) SAVEPOINT active_record_1
14680
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
14681
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
14682
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38202247191011235], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 9], ["rgt", 0.38235294117647056], ["rgtp", 13], ["rgtq", 34]]
14683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14684
+  (0.0ms) SAVEPOINT active_record_1
14685
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
14686
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
14687
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819444444444444], ["lftp", 55], ["lftq", 144], ["name", ""], ["region_id", 9], ["rgt", 0.38202247191011235], ["rgtp", 34], ["rgtq", 89]]
14688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14689
+  (0.0ms) SAVEPOINT active_record_1
14690
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
14691
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
14692
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38197424892703863], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 11], ["rgt", 0.38202247191011235], ["rgtp", 34], ["rgtq", 89]]
14693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14694
+  (0.0ms) SAVEPOINT active_record_1
14695
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
14696
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
14697
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819628647214854], ["lftp", 144], ["lftq", 377], ["name", ""], ["region_id", 11], ["rgt", 0.38197424892703863], ["rgtp", 89], ["rgtq", 233]]
14698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14699
+  (0.0ms) SAVEPOINT active_record_1
14700
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
14701
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
14702
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819672131147541], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 13], ["rgt", 0.38197424892703863], ["rgtp", 89], ["rgtq", 233]]
14703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14704
+  (0.0ms) SAVEPOINT active_record_1
14705
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
14706
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
14707
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819655521783181], ["lftp", 377], ["lftq", 987], ["name", ""], ["region_id", 13], ["rgt", 0.3819672131147541], ["rgtp", 233], ["rgtq", 610]]
14708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14709
+  (0.0ms) SAVEPOINT active_record_1
14710
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
14711
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
14712
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196618659987475], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 15], ["rgt", 0.3819672131147541], ["rgtp", 233], ["rgtq", 610]]
14713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14714
+  (0.0ms) SAVEPOINT active_record_1
14715
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
14716
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
14717
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196594427244585], ["lftp", 987], ["lftq", 2584], ["name", ""], ["region_id", 15], ["rgt", 0.38196618659987475], ["rgtp", 610], ["rgtq", 1597]]
14718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14719
+  (0.0ms) SAVEPOINT active_record_1
14720
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
14721
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
14722
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196603683329344], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 17], ["rgt", 0.38196618659987475], ["rgtp", 610], ["rgtq", 1597]]
14723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14724
+  (0.0ms) SAVEPOINT active_record_1
14725
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
14726
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
14727
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660014781966], ["lftp", 2584], ["lftq", 6765], ["name", ""], ["region_id", 17], ["rgt", 0.38196603683329344], ["rgtp", 1597], ["rgtq", 4181]]
14728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14729
+  (0.0ms) SAVEPOINT active_record_1
14730
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
14731
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
14732
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601498264204], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 19], ["rgt", 0.38196603683329344], ["rgtp", 1597], ["rgtq", 4181]]
14733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14734
+  (0.0ms) SAVEPOINT active_record_1
14735
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
14736
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
14737
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196600982440293], ["lftp", 6765], ["lftq", 17711], ["name", ""], ["region_id", 19], ["rgt", 0.38196601498264204], ["rgtp", 4181], ["rgtq", 10946]]
14738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14739
+  (0.0ms) SAVEPOINT active_record_1
14740
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
14741
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
14742
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601179467493], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 21], ["rgt", 0.38196601498264204], ["rgtp", 4181], ["rgtq", 10946]]
14743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14744
+  (0.0ms) SAVEPOINT active_record_1
14745
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
14746
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
14747
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.381966011042098], ["lftp", 17711], ["lftq", 46368], ["name", ""], ["region_id", 21], ["rgt", 0.38196601179467493], ["rgtp", 10946], ["rgtq", 28657]]
14748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14749
+  (0.0ms) SAVEPOINT active_record_1
14750
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
14751
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
14752
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660113295568], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 23], ["rgt", 0.38196601179467493], ["rgtp", 10946], ["rgtq", 28657]]
14753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14754
+  (0.0ms) SAVEPOINT active_record_1
14755
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
14756
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
14757
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112197573], ["lftp", 46368], ["lftq", 121393], ["name", ""], ["region_id", 23], ["rgt", 0.3819660113295568], ["rgtp", 28657], ["rgtq", 75025]]
14758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14759
+  (0.0ms) SAVEPOINT active_record_1
14760
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
14761
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
14762
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.381966011261697], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 25], ["rgt", 0.3819660113295568], ["rgtp", 28657], ["rgtq", 75025]]
14763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14764
+  (0.0ms) SAVEPOINT active_record_1
14765
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
14766
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
14767
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112456775], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 25], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
14768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14769
+  (0.0ms) SAVEPOINT active_record_1
14770
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
14771
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
14772
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125179636], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 27], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
14773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14774
+  (0.0ms) SAVEPOINT active_record_1
14775
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
14776
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
14777
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601124945917], ["lftp", 317811], ["lftq", 832040], ["name", ""], ["region_id", 27], ["rgt", 0.38196601125179636], ["rgtp", 196418], ["rgtq", 514229]]
14778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14779
+  (0.0ms) SAVEPOINT active_record_1
14780
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
14781
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
14782
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112503519], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 29], ["rgt", 0.38196601125179636], ["rgtp", 196418], ["rgtq", 514229]]
14783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14784
+  (0.0ms) SAVEPOINT active_record_1
14785
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
14786
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
14787
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112500109], ["lftp", 832040], ["lftq", 2178309], ["name", ""], ["region_id", 29], ["rgt", 0.3819660112503519], ["rgtp", 514229], ["rgtq", 1346269]]
14788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14789
+  (0.0ms) SAVEPOINT active_record_1
14790
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
14791
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
14792
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501411], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 31], ["rgt", 0.3819660112503519], ["rgtp", 514229], ["rgtq", 1346269]]
14793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14794
+  (0.0ms) SAVEPOINT active_record_1
14795
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
14796
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
14797
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112500914], ["lftp", 2178309], ["lftq", 5702887], ["name", ""], ["region_id", 31], ["rgt", 0.3819660112501411], ["rgtp", 1346269], ["rgtq", 3524578]]
14798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14799
+  (0.0ms) SAVEPOINT active_record_1
14800
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
14801
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
14802
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501104], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 33], ["rgt", 0.3819660112501411], ["rgtp", 1346269], ["rgtq", 3524578]]
14803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14804
+  (0.0ms) SAVEPOINT active_record_1
14805
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
14806
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
14807
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010315], ["lftp", 5702887], ["lftq", 14930352], ["name", ""], ["region_id", 33], ["rgt", 0.3819660112501104], ["rgtp", 3524578], ["rgtq", 9227465]]
14808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14809
+  (0.0ms) SAVEPOINT active_record_1
14810
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
14811
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
14812
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010593], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 35], ["rgt", 0.3819660112501104], ["rgtp", 3524578], ["rgtq", 9227465]]
14813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14814
+  (0.0ms) SAVEPOINT active_record_1
14815
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
14816
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
14817
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501049], ["lftp", 14930352], ["lftq", 39088169], ["name", ""], ["region_id", 35], ["rgt", 0.38196601125010593], ["rgtp", 9227465], ["rgtq", 24157817]]
14818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14819
+  (0.0ms) SAVEPOINT active_record_1
14820
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
14821
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
14822
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010526], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 37], ["rgt", 0.38196601125010593], ["rgtp", 9227465], ["rgtq", 24157817]]
14823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14824
+  (0.0ms) SAVEPOINT active_record_1
14825
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
14826
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
14827
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501051], ["lftp", 39088169], ["lftq", 102334155], ["name", ""], ["region_id", 37], ["rgt", 0.38196601125010526], ["rgtp", 24157817], ["rgtq", 63245986]]
14828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14829
+  (0.0ms) SAVEPOINT active_record_1
14830
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
14831
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
14832
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 39], ["rgt", 0.38196601125010526], ["rgtp", 24157817], ["rgtq", 63245986]]
14833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14834
+  (0.0ms) SAVEPOINT active_record_1
14835
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
14836
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
14837
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 102334155], ["lftq", 267914296], ["name", ""], ["region_id", 39], ["rgt", 0.38196601125010515], ["rgtp", 63245986], ["rgtq", 165580141]]
14838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14839
+  (0.0ms) SAVEPOINT active_record_1
14840
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
14841
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
14842
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 41], ["rgt", 0.38196601125010515], ["rgtp", 63245986], ["rgtq", 165580141]]
14843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14844
+  (0.0ms) SAVEPOINT active_record_1
14845
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
14846
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
14847
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 267914296], ["lftq", 701408733], ["name", ""], ["region_id", 41], ["rgt", 0.38196601125010515], ["rgtp", 165580141], ["rgtq", 433494437]]
14848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14849
+  (0.0ms) SAVEPOINT active_record_1
14850
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
14851
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
14852
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 43], ["rgt", 0.38196601125010515], ["rgtp", 165580141], ["rgtq", 433494437]]
14853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14854
+  (0.0ms) SAVEPOINT active_record_1
14855
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
14856
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
14857
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 701408733], ["lftq", 1836311903], ["name", ""], ["region_id", 43], ["rgt", 0.38196601125010515], ["rgtp", 433494437], ["rgtq", 1134903170]]
14858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14859
+  (0.1ms) rollback transaction
14860
+  (0.0ms) begin transaction
14861
+  (0.0ms) rollback transaction
14862
+  (0.0ms) begin transaction
14863
+  (0.0ms) SAVEPOINT active_record_1
14864
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14866
+  (0.0ms) SAVEPOINT active_record_1
14867
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14868
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14869
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14871
+  (0.0ms) SAVEPOINT active_record_1
14872
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14873
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14874
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14876
+  (0.0ms) SAVEPOINT active_record_1
14877
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14878
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14879
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14881
+  (0.0ms) SAVEPOINT active_record_1
14882
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14883
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14884
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
14885
+  (0.0ms) SAVEPOINT active_record_1
14886
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14887
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
14888
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14889
+  (0.0ms) SAVEPOINT active_record_1
14890
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14891
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14892
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14893
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14894
+  (0.0ms) SAVEPOINT active_record_1
14895
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14896
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
14897
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
14898
+ SQL (0.1ms) UPDATE "regions" SET
14899
+ rgtp = 0 * rgtp + 1 * rgtq,
14900
+ rgtq = -1 * rgtp + 3 * rgtq
14901
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14902
+ "regions".lft BETWEEN 0.5 AND 1.0
14903
+ )
14904
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14905
+ "regions".lft BETWEEN 0.5 AND 1.0
14906
+ )
14907
+ SQL (0.1ms) UPDATE "regions" SET
14908
+ lftp = 0 * lftp + 1 * lftq,
14909
+ lftq = -1 * lftp + 3 * lftq
14910
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14911
+ "regions".lft BETWEEN 0.5 AND 1.0
14912
+ )
14913
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
14914
+ "regions".lft BETWEEN 0.5 AND 1.0
14915
+ )
14916
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
14917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14918
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
14919
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
14920
+  (0.1ms) rollback transaction
14921
+  (0.0ms) begin transaction
14922
+  (0.0ms) SAVEPOINT active_record_1
14923
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14924
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14926
+  (0.0ms) SAVEPOINT active_record_1
14927
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14928
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14929
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14931
+  (0.0ms) SAVEPOINT active_record_1
14932
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14933
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14935
+  (0.0ms) SAVEPOINT active_record_1
14936
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14937
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
14938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14939
+  (0.0ms) SAVEPOINT active_record_1
14940
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14941
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
14942
+  (0.1ms) rollback transaction
14943
+  (0.0ms) begin transaction
14944
+  (0.0ms) SAVEPOINT active_record_1
14945
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14946
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14948
+  (0.0ms) SAVEPOINT active_record_1
14949
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14950
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14951
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14953
+  (0.0ms) SAVEPOINT active_record_1
14954
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14955
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14956
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
14957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14958
+  (0.0ms) SAVEPOINT active_record_1
14959
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14960
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14961
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14963
+  (0.0ms) SAVEPOINT active_record_1
14964
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
14965
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
14966
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.7142857142857143], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.75], ["rgtp", 3], ["rgtq", 4]]
14967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14968
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
14969
+  (0.1ms) rollback transaction
14970
+  (0.0ms) begin transaction
14971
+  (0.0ms) SAVEPOINT active_record_1
14972
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14973
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14975
+  (0.0ms) SAVEPOINT active_record_1
14976
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14977
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
14978
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
14979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14980
+  (0.0ms) SAVEPOINT active_record_1
14981
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14982
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
14983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14984
+  (0.0ms) SAVEPOINT active_record_1
14985
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
14986
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
14987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14988
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
14989
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
14990
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
14991
+  (0.0ms) SAVEPOINT active_record_1
14992
+  (0.4ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
14993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14994
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
14995
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
14996
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
14997
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
14998
+  (0.0ms) SAVEPOINT active_record_1
14999
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
15000
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15001
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
15002
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
15003
+  (0.0ms) SAVEPOINT active_record_1
15004
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
15005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15006
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
15007
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
15008
+  (0.0ms) SAVEPOINT active_record_1
15009
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
15010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15011
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
15012
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
15013
+  (0.1ms) rollback transaction
15014
+  (0.0ms) begin transaction
15015
+  (0.0ms) SAVEPOINT active_record_1
15016
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15017
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15019
+  (0.0ms) SAVEPOINT active_record_1
15020
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15021
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15022
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15023
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15024
+  (0.0ms) SAVEPOINT active_record_1
15025
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15026
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15028
+  (0.0ms) SAVEPOINT active_record_1
15029
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15030
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
15031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15032
+  (0.0ms) SAVEPOINT active_record_1
15033
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
15034
+  (0.1ms) UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
15035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15036
+  (0.1ms) rollback transaction
15037
+  (0.0ms) begin transaction
15038
+  (0.0ms) SAVEPOINT active_record_1
15039
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15040
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15042
+  (0.0ms) SAVEPOINT active_record_1
15043
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15044
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15045
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15047
+  (0.0ms) SAVEPOINT active_record_1
15048
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15049
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", true], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15051
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
15052
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
15053
+ "regions".lft BETWEEN 0.5 AND 1.0
15054
+ )
15055
+  (0.4ms) rollback transaction
15056
+  (0.1ms) begin transaction
15057
+  (0.0ms) SAVEPOINT active_record_1
15058
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15059
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15061
+  (0.0ms) SAVEPOINT active_record_1
15062
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15063
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15064
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15065
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15066
+  (0.0ms) SAVEPOINT active_record_1
15067
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15068
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15070
+  (0.0ms) SAVEPOINT active_record_1
15071
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15072
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
15073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15074
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
15075
+  (0.1ms) rollback transaction
15076
+  (0.0ms) begin transaction
15077
+  (0.0ms) SAVEPOINT active_record_1
15078
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15079
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15081
+  (0.0ms) SAVEPOINT active_record_1
15082
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15083
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "2"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15085
+  (0.1ms) SAVEPOINT active_record_1
15086
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15087
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "3"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
15088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15089
+  (0.1ms) rollback transaction
15090
+  (0.1ms) begin transaction
15091
+  (0.0ms) SAVEPOINT active_record_1
15092
+ SQL (2.7ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15094
+  (0.1ms) SAVEPOINT active_record_1
15095
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15096
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15097
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15099
+  (0.0ms) SAVEPOINT active_record_1
15100
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15101
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15102
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15104
+  (0.1ms) SAVEPOINT active_record_1
15105
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15106
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15107
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
15108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15109
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL)
15110
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 1 AND lftp = 0)
15111
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
15112
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
15113
+  (0.1ms) rollback transaction
15114
+  (0.1ms) begin transaction
15115
+  (0.0ms) SAVEPOINT active_record_1
15116
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15118
+  (0.0ms) SAVEPOINT active_record_1
15119
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
15120
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15121
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15122
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15124
+  (0.1ms) rollback transaction
15125
+  (0.0ms) begin transaction
15126
+  (0.0ms) SAVEPOINT active_record_1
15127
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15128
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15129
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15130
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15132
+  (0.1ms) rollback transaction
15133
+  (0.0ms) begin transaction
15134
+  (0.0ms) SAVEPOINT active_record_1
15135
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15137
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
15138
+  (0.1ms) rollback transaction
15139
+  (0.0ms) begin transaction
15140
+  (0.0ms) SAVEPOINT active_record_1
15141
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15143
+  (0.0ms) SAVEPOINT active_record_1
15144
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15145
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15146
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15148
+  (0.0ms) SAVEPOINT active_record_1
15149
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15150
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15151
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15153
+  (0.1ms) SAVEPOINT active_record_1
15154
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15155
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15156
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
15157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15158
+  (0.1ms) rollback transaction
15159
+  (0.0ms) begin transaction
15160
+  (0.0ms) SAVEPOINT active_record_1
15161
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15163
+  (0.0ms) SAVEPOINT active_record_1
15164
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15165
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15166
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15168
+  (0.0ms) SAVEPOINT active_record_1
15169
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15170
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15171
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15173
+  (0.0ms) SAVEPOINT active_record_1
15174
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15175
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15176
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
15177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15178
+  (0.1ms) rollback transaction
15179
+  (0.0ms) begin transaction
15180
+  (0.0ms) SAVEPOINT active_record_1
15181
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15183
+  (0.0ms) SAVEPOINT active_record_1
15184
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15185
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15186
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15188
+  (0.0ms) SAVEPOINT active_record_1
15189
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15190
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15191
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15193
+  (0.0ms) SAVEPOINT active_record_1
15194
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15195
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15196
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
15197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15198
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
15199
+ "regions".lft BETWEEN 0.0 AND 1.0
15200
+ )
15201
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
15202
+ "regions".lft BETWEEN 0.5 AND 1.0
15203
+ )
15204
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
15205
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
15206
+ )
15207
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
15208
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
15209
+ )
15210
+  (0.1ms) rollback transaction
15211
+  (0.0ms) begin transaction
15212
+  (0.0ms) SAVEPOINT active_record_1
15213
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15215
+  (0.0ms) SAVEPOINT active_record_1
15216
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15217
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15218
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15220
+  (0.1ms) SAVEPOINT active_record_1
15221
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15222
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15223
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15225
+  (0.0ms) SAVEPOINT active_record_1
15226
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15227
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15228
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
15229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15230
+  (0.0ms) SAVEPOINT active_record_1
15231
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2
15232
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
15233
+  (0.1ms) rollback transaction
15234
+  (0.0ms) begin transaction
15235
+  (0.1ms) SAVEPOINT active_record_1
15236
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", ""], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15238
+  (0.0ms) SAVEPOINT active_record_1
15239
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15240
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15241
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15243
+  (0.0ms) SAVEPOINT active_record_1
15244
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15245
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15246
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", ""], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15248
+  (0.0ms) SAVEPOINT active_record_1
15249
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
15250
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
15251
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.4], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15253
+  (0.0ms) SAVEPOINT active_record_1
15254
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
15255
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
15256
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.375], ["lftp", 3], ["lftq", 8], ["name", ""], ["region_id", 3], ["rgt", 0.4], ["rgtp", 2], ["rgtq", 5]]
15257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15258
+  (0.0ms) SAVEPOINT active_record_1
15259
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
15260
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
15261
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38461538461538464], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 5], ["rgt", 0.4], ["rgtp", 2], ["rgtq", 5]]
15262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15263
+  (0.0ms) SAVEPOINT active_record_1
15264
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
15265
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
15266
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38095238095238093], ["lftp", 8], ["lftq", 21], ["name", ""], ["region_id", 5], ["rgt", 0.38461538461538464], ["rgtp", 5], ["rgtq", 13]]
15267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15268
+  (0.0ms) SAVEPOINT active_record_1
15269
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
15270
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
15271
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38235294117647056], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 7], ["rgt", 0.38461538461538464], ["rgtp", 5], ["rgtq", 13]]
15272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15273
+  (0.0ms) SAVEPOINT active_record_1
15274
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
15275
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
15276
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38181818181818183], ["lftp", 21], ["lftq", 55], ["name", ""], ["region_id", 7], ["rgt", 0.38235294117647056], ["rgtp", 13], ["rgtq", 34]]
15277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15278
+  (0.0ms) SAVEPOINT active_record_1
15279
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
15280
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
15281
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38202247191011235], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 9], ["rgt", 0.38235294117647056], ["rgtp", 13], ["rgtq", 34]]
15282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15283
+  (0.0ms) SAVEPOINT active_record_1
15284
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
15285
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
15286
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819444444444444], ["lftp", 55], ["lftq", 144], ["name", ""], ["region_id", 9], ["rgt", 0.38202247191011235], ["rgtp", 34], ["rgtq", 89]]
15287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15288
+  (0.0ms) SAVEPOINT active_record_1
15289
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
15290
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
15291
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38197424892703863], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 11], ["rgt", 0.38202247191011235], ["rgtp", 34], ["rgtq", 89]]
15292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15293
+  (0.0ms) SAVEPOINT active_record_1
15294
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
15295
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
15296
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819628647214854], ["lftp", 144], ["lftq", 377], ["name", ""], ["region_id", 11], ["rgt", 0.38197424892703863], ["rgtp", 89], ["rgtq", 233]]
15297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15298
+  (0.0ms) SAVEPOINT active_record_1
15299
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
15300
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
15301
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819672131147541], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 13], ["rgt", 0.38197424892703863], ["rgtp", 89], ["rgtq", 233]]
15302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15303
+  (0.0ms) SAVEPOINT active_record_1
15304
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
15305
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
15306
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819655521783181], ["lftp", 377], ["lftq", 987], ["name", ""], ["region_id", 13], ["rgt", 0.3819672131147541], ["rgtp", 233], ["rgtq", 610]]
15307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15308
+  (0.0ms) SAVEPOINT active_record_1
15309
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
15310
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
15311
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196618659987475], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 15], ["rgt", 0.3819672131147541], ["rgtp", 233], ["rgtq", 610]]
15312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15313
+  (0.0ms) SAVEPOINT active_record_1
15314
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
15315
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
15316
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196594427244585], ["lftp", 987], ["lftq", 2584], ["name", ""], ["region_id", 15], ["rgt", 0.38196618659987475], ["rgtp", 610], ["rgtq", 1597]]
15317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15318
+  (0.0ms) SAVEPOINT active_record_1
15319
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
15320
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
15321
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196603683329344], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 17], ["rgt", 0.38196618659987475], ["rgtp", 610], ["rgtq", 1597]]
15322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15323
+  (0.0ms) SAVEPOINT active_record_1
15324
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
15325
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
15326
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660014781966], ["lftp", 2584], ["lftq", 6765], ["name", ""], ["region_id", 17], ["rgt", 0.38196603683329344], ["rgtp", 1597], ["rgtq", 4181]]
15327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15328
+  (0.0ms) SAVEPOINT active_record_1
15329
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
15330
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
15331
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601498264204], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 19], ["rgt", 0.38196603683329344], ["rgtp", 1597], ["rgtq", 4181]]
15332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15333
+  (0.0ms) SAVEPOINT active_record_1
15334
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
15335
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
15336
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196600982440293], ["lftp", 6765], ["lftq", 17711], ["name", ""], ["region_id", 19], ["rgt", 0.38196601498264204], ["rgtp", 4181], ["rgtq", 10946]]
15337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15338
+  (0.0ms) SAVEPOINT active_record_1
15339
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
15340
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
15341
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601179467493], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 21], ["rgt", 0.38196601498264204], ["rgtp", 4181], ["rgtq", 10946]]
15342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15343
+  (0.0ms) SAVEPOINT active_record_1
15344
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
15345
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
15346
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.381966011042098], ["lftp", 17711], ["lftq", 46368], ["name", ""], ["region_id", 21], ["rgt", 0.38196601179467493], ["rgtp", 10946], ["rgtq", 28657]]
15347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15348
+  (0.0ms) SAVEPOINT active_record_1
15349
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
15350
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
15351
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660113295568], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 23], ["rgt", 0.38196601179467493], ["rgtp", 10946], ["rgtq", 28657]]
15352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15353
+  (0.0ms) SAVEPOINT active_record_1
15354
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
15355
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
15356
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112197573], ["lftp", 46368], ["lftq", 121393], ["name", ""], ["region_id", 23], ["rgt", 0.3819660113295568], ["rgtp", 28657], ["rgtq", 75025]]
15357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15358
+  (0.0ms) SAVEPOINT active_record_1
15359
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
15360
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
15361
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.381966011261697], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 25], ["rgt", 0.3819660113295568], ["rgtp", 28657], ["rgtq", 75025]]
15362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15363
+  (0.0ms) SAVEPOINT active_record_1
15364
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
15365
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
15366
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112456775], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 25], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
15367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15368
+  (0.0ms) SAVEPOINT active_record_1
15369
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
15370
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
15371
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125179636], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 27], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
15372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15373
+  (0.0ms) SAVEPOINT active_record_1
15374
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
15375
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
15376
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601124945917], ["lftp", 317811], ["lftq", 832040], ["name", ""], ["region_id", 27], ["rgt", 0.38196601125179636], ["rgtp", 196418], ["rgtq", 514229]]
15377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15378
+  (0.0ms) SAVEPOINT active_record_1
15379
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
15380
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
15381
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112503519], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 29], ["rgt", 0.38196601125179636], ["rgtp", 196418], ["rgtq", 514229]]
15382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15383
+  (0.0ms) SAVEPOINT active_record_1
15384
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
15385
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
15386
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112500109], ["lftp", 832040], ["lftq", 2178309], ["name", ""], ["region_id", 29], ["rgt", 0.3819660112503519], ["rgtp", 514229], ["rgtq", 1346269]]
15387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15388
+  (0.0ms) SAVEPOINT active_record_1
15389
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
15390
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
15391
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501411], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 31], ["rgt", 0.3819660112503519], ["rgtp", 514229], ["rgtq", 1346269]]
15392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15393
+  (0.0ms) SAVEPOINT active_record_1
15394
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
15395
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
15396
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112500914], ["lftp", 2178309], ["lftq", 5702887], ["name", ""], ["region_id", 31], ["rgt", 0.3819660112501411], ["rgtp", 1346269], ["rgtq", 3524578]]
15397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15398
+  (0.0ms) SAVEPOINT active_record_1
15399
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
15400
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
15401
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501104], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 33], ["rgt", 0.3819660112501411], ["rgtp", 1346269], ["rgtq", 3524578]]
15402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15403
+  (0.0ms) SAVEPOINT active_record_1
15404
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
15405
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
15406
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010315], ["lftp", 5702887], ["lftq", 14930352], ["name", ""], ["region_id", 33], ["rgt", 0.3819660112501104], ["rgtp", 3524578], ["rgtq", 9227465]]
15407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15408
+  (0.0ms) SAVEPOINT active_record_1
15409
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
15410
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
15411
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010593], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 35], ["rgt", 0.3819660112501104], ["rgtp", 3524578], ["rgtq", 9227465]]
15412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15413
+  (0.0ms) SAVEPOINT active_record_1
15414
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
15415
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
15416
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501049], ["lftp", 14930352], ["lftq", 39088169], ["name", ""], ["region_id", 35], ["rgt", 0.38196601125010593], ["rgtp", 9227465], ["rgtq", 24157817]]
15417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15418
+  (0.0ms) SAVEPOINT active_record_1
15419
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
15420
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
15421
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010526], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 37], ["rgt", 0.38196601125010593], ["rgtp", 9227465], ["rgtq", 24157817]]
15422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15423
+  (0.0ms) SAVEPOINT active_record_1
15424
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
15425
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
15426
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112501051], ["lftp", 39088169], ["lftq", 102334155], ["name", ""], ["region_id", 37], ["rgt", 0.38196601125010526], ["rgtp", 24157817], ["rgtq", 63245986]]
15427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15428
+  (0.0ms) SAVEPOINT active_record_1
15429
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
15430
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
15431
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 39], ["rgt", 0.38196601125010526], ["rgtp", 24157817], ["rgtq", 63245986]]
15432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15433
+  (0.0ms) SAVEPOINT active_record_1
15434
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
15435
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
15436
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 102334155], ["lftq", 267914296], ["name", ""], ["region_id", 39], ["rgt", 0.38196601125010515], ["rgtp", 63245986], ["rgtq", 165580141]]
15437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15438
+  (0.0ms) SAVEPOINT active_record_1
15439
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
15440
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
15441
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 41], ["rgt", 0.38196601125010515], ["rgtp", 63245986], ["rgtq", 165580141]]
15442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15443
+  (0.0ms) SAVEPOINT active_record_1
15444
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
15445
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
15446
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 267914296], ["lftq", 701408733], ["name", ""], ["region_id", 41], ["rgt", 0.38196601125010515], ["rgtp", 165580141], ["rgtq", 433494437]]
15447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15448
+  (0.0ms) SAVEPOINT active_record_1
15449
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
15450
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
15451
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 43], ["rgt", 0.38196601125010515], ["rgtp", 165580141], ["rgtq", 433494437]]
15452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15453
+  (0.0ms) SAVEPOINT active_record_1
15454
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
15455
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
15456
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 701408733], ["lftq", 1836311903], ["name", ""], ["region_id", 43], ["rgt", 0.38196601125010515], ["rgtp", 433494437], ["rgtq", 1134903170]]
15457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15458
+  (0.1ms) rollback transaction
15459
+  (0.0ms) begin transaction
15460
+  (0.0ms) rollback transaction
15461
+  (0.0ms) begin transaction
15462
+  (0.0ms) SAVEPOINT active_record_1
15463
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15465
+  (0.0ms) SAVEPOINT active_record_1
15466
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15467
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15468
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15470
+  (0.0ms) SAVEPOINT active_record_1
15471
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15472
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15473
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15475
+  (0.0ms) SAVEPOINT active_record_1
15476
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15477
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15478
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
15479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15480
+  (0.0ms) SAVEPOINT active_record_1
15481
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15482
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15483
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
15484
+  (0.0ms) SAVEPOINT active_record_1
15485
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15486
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
15487
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
15488
+  (0.0ms) SAVEPOINT active_record_1
15489
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15490
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15491
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15493
+  (0.0ms) SAVEPOINT active_record_1
15494
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15495
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
15496
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
15497
+ SQL (0.1ms) UPDATE "regions" SET
15498
+ rgtp = 0 * rgtp + 1 * rgtq,
15499
+ rgtq = -1 * rgtp + 3 * rgtq
15500
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
15501
+ "regions".lft BETWEEN 0.5 AND 1.0
15502
+ )
15503
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
15504
+ "regions".lft BETWEEN 0.5 AND 1.0
15505
+ )
15506
+ SQL (0.1ms) UPDATE "regions" SET
15507
+ lftp = 0 * lftp + 1 * lftq,
15508
+ lftq = -1 * lftp + 3 * lftq
15509
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
15510
+ "regions".lft BETWEEN 0.5 AND 1.0
15511
+ )
15512
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
15513
+ "regions".lft BETWEEN 0.5 AND 1.0
15514
+ )
15515
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
15516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15517
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
15518
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
15519
+  (0.1ms) rollback transaction
15520
+  (0.0ms) begin transaction
15521
+  (0.0ms) SAVEPOINT active_record_1
15522
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15523
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15525
+  (0.0ms) SAVEPOINT active_record_1
15526
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15527
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15528
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15529
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15530
+  (0.0ms) SAVEPOINT active_record_1
15531
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15532
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15534
+  (0.1ms) SAVEPOINT active_record_1
15535
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15536
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
15537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15538
+  (0.0ms) SAVEPOINT active_record_1
15539
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15540
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15541
+ SQL (0.1ms) UPDATE "regions" SET
15542
+ rgtp = 2 * rgtp + -1 * rgtq,
15543
+ rgtq = 7 * rgtp + -3 * rgtq
15544
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
15545
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
15546
+ )
15547
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
15548
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
15549
+ )
15550
+ SQL (0.1ms) UPDATE "regions" SET
15551
+ lftp = 2 * lftp + -1 * lftq,
15552
+ lftq = 7 * lftp + -3 * lftq
15553
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
15554
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
15555
+ )
15556
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
15557
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
15558
+ )
15559
+  (0.1ms) UPDATE "regions" SET "region_id" = NULL, "lftp" = 1, "lftq" = 5, "rgtq" = 4, "lft" = 0.2, "rgt" = 0.25 WHERE "regions"."id" = 2
15560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15561
+  (0.1ms) rollback transaction
15562
+  (0.0ms) begin transaction
15563
+  (0.0ms) SAVEPOINT active_record_1
15564
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15565
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15567
+  (0.0ms) SAVEPOINT active_record_1
15568
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15569
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15570
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15572
+  (0.0ms) SAVEPOINT active_record_1
15573
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15574
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15575
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
15576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15577
+  (0.0ms) SAVEPOINT active_record_1
15578
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15579
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15580
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15582
+  (0.0ms) SAVEPOINT active_record_1
15583
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
15584
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
15585
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.7142857142857143], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.75], ["rgtp", 3], ["rgtq", 4]]
15586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15587
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
15588
+  (0.1ms) rollback transaction
15589
+  (0.0ms) begin transaction
15590
+  (0.0ms) SAVEPOINT active_record_1
15591
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15592
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15594
+  (0.0ms) SAVEPOINT active_record_1
15595
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15596
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15597
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15599
+  (0.0ms) SAVEPOINT active_record_1
15600
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15601
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15603
+  (0.0ms) SAVEPOINT active_record_1
15604
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15605
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
15606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15607
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
15608
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
15609
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
15610
+  (0.0ms) SAVEPOINT active_record_1
15611
+  (0.3ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
15612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15613
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
15614
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
15615
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15616
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
15617
+  (0.0ms) SAVEPOINT active_record_1
15618
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
15619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15620
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
15621
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
15622
+  (0.0ms) SAVEPOINT active_record_1
15623
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
15624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15625
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
15626
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
15627
+  (0.0ms) SAVEPOINT active_record_1
15628
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
15629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15630
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
15631
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
15632
+  (0.1ms) rollback transaction
15633
+  (0.0ms) begin transaction
15634
+  (0.0ms) SAVEPOINT active_record_1
15635
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15636
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15638
+  (0.0ms) SAVEPOINT active_record_1
15639
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15640
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15641
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15643
+  (0.0ms) SAVEPOINT active_record_1
15644
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15645
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15647
+  (0.0ms) SAVEPOINT active_record_1
15648
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15649
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
15650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15651
+  (0.0ms) SAVEPOINT active_record_1
15652
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
15653
+  (0.1ms) UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
15654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15655
+  (0.1ms) rollback transaction
15656
+  (0.0ms) begin transaction
15657
+  (0.0ms) SAVEPOINT active_record_1
15658
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15659
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15661
+  (0.0ms) SAVEPOINT active_record_1
15662
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15663
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15664
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15666
+  (0.0ms) SAVEPOINT active_record_1
15667
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15668
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", true], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15670
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
15671
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
15672
+ "regions".lft BETWEEN 0.5 AND 1.0
15673
+ )
15674
+  (0.3ms) rollback transaction
15675
+  (0.0ms) begin transaction
15676
+  (0.0ms) SAVEPOINT active_record_1
15677
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15678
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15680
+  (0.0ms) SAVEPOINT active_record_1
15681
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
15682
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
15683
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15685
+  (0.0ms) SAVEPOINT active_record_1
15686
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15687
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15689
+  (0.0ms) SAVEPOINT active_record_1
15690
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15691
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "America"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
15692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15693
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
15694
+  (0.1ms) rollback transaction
15695
+  (0.0ms) begin transaction
15696
+  (0.0ms) SAVEPOINT active_record_1
15697
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15698
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
15699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15700
+  (0.0ms) SAVEPOINT active_record_1
15701
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15702
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "2"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
15703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15704
+  (0.0ms) SAVEPOINT active_record_1
15705
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
15706
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "3"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
15707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15708
+  (0.1ms) rollback transaction