acts_as_nested_interval 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -41045,3 +41045,2823 @@ SQLite3::BusyException: cannot rollback transaction - SQL statements in progress
41045
41045
  Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
41046
41046
  Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
41047
41047
   (0.1ms) rollback transaction
41048
+  (0.2ms) begin transaction
41049
+  (0.6ms) SAVEPOINT active_record_1
41050
+ SQL (91.6ms) 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]]
41051
+  (0.3ms) RELEASE SAVEPOINT active_record_1
41052
+  (0.1ms) SAVEPOINT active_record_1
41053
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41054
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41055
+ SQL (18.8ms) 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]]
41056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41057
+  (0.0ms) SAVEPOINT active_record_1
41058
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41059
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41060
+ 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]]
41061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41062
+  (0.0ms) SAVEPOINT active_record_1
41063
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41064
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41065
+ 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]]
41066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41067
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL)
41068
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 1 AND lftp = 0)
41069
+ 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)
41070
+ 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)
41071
+  (0.2ms) rollback transaction
41072
+  (0.0ms) begin transaction
41073
+  (0.0ms) SAVEPOINT active_record_1
41074
+ SQL (0.5ms) 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]]
41075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41076
+  (0.2ms) SAVEPOINT active_record_1
41077
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
41078
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41079
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41080
+ 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]]
41081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41082
+  (0.1ms) rollback transaction
41083
+  (0.0ms) begin transaction
41084
+  (0.0ms) SAVEPOINT active_record_1
41085
+ SQL (0.4ms) 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]]
41086
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41087
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41088
+ 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]]
41089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41090
+  (0.1ms) rollback transaction
41091
+  (0.0ms) begin transaction
41092
+  (0.0ms) SAVEPOINT active_record_1
41093
+ SQL (0.4ms) 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]]
41094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41095
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
41096
+  (0.1ms) rollback transaction
41097
+  (0.0ms) begin transaction
41098
+  (0.0ms) SAVEPOINT active_record_1
41099
+ SQL (0.4ms) 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]]
41100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41101
+  (0.1ms) SAVEPOINT active_record_1
41102
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41103
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41104
+ 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]]
41105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41106
+  (0.0ms) SAVEPOINT active_record_1
41107
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41108
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41109
+ 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]]
41110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41111
+  (0.0ms) SAVEPOINT active_record_1
41112
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41113
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41114
+ 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]]
41115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41116
+  (0.1ms) rollback transaction
41117
+  (0.0ms) begin transaction
41118
+  (0.0ms) SAVEPOINT active_record_1
41119
+ 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]]
41120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41121
+  (0.0ms) SAVEPOINT active_record_1
41122
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41123
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41124
+ 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]]
41125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41126
+  (0.0ms) SAVEPOINT active_record_1
41127
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41128
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41129
+ 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]]
41130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41131
+  (0.0ms) SAVEPOINT active_record_1
41132
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41133
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41134
+ 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]]
41135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41136
+  (0.1ms) rollback transaction
41137
+  (0.0ms) begin transaction
41138
+  (0.0ms) SAVEPOINT active_record_1
41139
+ SQL (0.9ms) 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]]
41140
+  (2.0ms) RELEASE SAVEPOINT active_record_1
41141
+  (0.1ms) SAVEPOINT active_record_1
41142
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41143
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41144
+ 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]]
41145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41146
+  (0.0ms) SAVEPOINT active_record_1
41147
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41148
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41149
+ 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]]
41150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41151
+  (0.0ms) SAVEPOINT active_record_1
41152
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41153
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41154
+ 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]]
41155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41156
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
41157
+ "regions".lft BETWEEN 0.0 AND 1.0
41158
+ )
41159
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
41160
+ "regions".lft BETWEEN 0.5 AND 1.0
41161
+ )
41162
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
41163
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
41164
+ )
41165
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
41166
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
41167
+ )
41168
+  (0.1ms) rollback transaction
41169
+  (0.0ms) begin transaction
41170
+  (0.0ms) SAVEPOINT active_record_1
41171
+ SQL (0.4ms) 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]]
41172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41173
+  (0.0ms) SAVEPOINT active_record_1
41174
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41175
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41176
+ 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]]
41177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41178
+  (0.0ms) SAVEPOINT active_record_1
41179
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41180
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41181
+ 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]]
41182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41183
+  (0.0ms) SAVEPOINT active_record_1
41184
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41185
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41186
+ 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]]
41187
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41188
+  (0.0ms) SAVEPOINT active_record_1
41189
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2
41190
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3
41191
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
41192
+ SQL (0.1ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 3]]
41193
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4
41194
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
41195
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 4]]
41196
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41197
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 2]]
41198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41199
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
41200
+ "regions".lft BETWEEN 0.0 AND 1.0
41201
+ )
41202
+  (0.1ms) rollback transaction
41203
+  (0.0ms) begin transaction
41204
+  (0.0ms) SAVEPOINT active_record_1
41205
+ SQL (0.4ms) 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]]
41206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41207
+  (0.0ms) SAVEPOINT active_record_1
41208
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41209
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41210
+ 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]]
41211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41212
+  (0.0ms) SAVEPOINT active_record_1
41213
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41214
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41215
+ 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]]
41216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41217
+  (0.0ms) SAVEPOINT active_record_1
41218
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
41219
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
41220
+ 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]]
41221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41222
+  (0.0ms) SAVEPOINT active_record_1
41223
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
41224
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
41225
+ 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]]
41226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41227
+  (0.0ms) SAVEPOINT active_record_1
41228
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
41229
+ Region Load (1.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
41230
+ 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]]
41231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41232
+  (0.0ms) SAVEPOINT active_record_1
41233
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
41234
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
41235
+ 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]]
41236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41237
+  (0.0ms) SAVEPOINT active_record_1
41238
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
41239
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
41240
+ 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]]
41241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41242
+  (0.0ms) SAVEPOINT active_record_1
41243
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
41244
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
41245
+ 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]]
41246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41247
+  (0.0ms) SAVEPOINT active_record_1
41248
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
41249
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
41250
+ 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]]
41251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41252
+  (0.0ms) SAVEPOINT active_record_1
41253
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
41254
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
41255
+ 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]]
41256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41257
+  (0.0ms) SAVEPOINT active_record_1
41258
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
41259
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
41260
+ 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]]
41261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41262
+  (0.0ms) SAVEPOINT active_record_1
41263
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
41264
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
41265
+ 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]]
41266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41267
+  (0.0ms) SAVEPOINT active_record_1
41268
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
41269
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
41270
+ 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]]
41271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41272
+  (0.0ms) SAVEPOINT active_record_1
41273
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
41274
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
41275
+ 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]]
41276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41277
+  (0.0ms) SAVEPOINT active_record_1
41278
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
41279
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
41280
+ 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]]
41281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41282
+  (0.0ms) SAVEPOINT active_record_1
41283
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
41284
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
41285
+ 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]]
41286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41287
+  (0.0ms) SAVEPOINT active_record_1
41288
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
41289
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
41290
+ 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]]
41291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41292
+  (0.0ms) SAVEPOINT active_record_1
41293
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
41294
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
41295
+ 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]]
41296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41297
+  (0.0ms) SAVEPOINT active_record_1
41298
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
41299
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
41300
+ 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]]
41301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41302
+  (0.0ms) SAVEPOINT active_record_1
41303
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
41304
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
41305
+ 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]]
41306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41307
+  (0.0ms) SAVEPOINT active_record_1
41308
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
41309
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
41310
+ 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]]
41311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41312
+  (0.0ms) SAVEPOINT active_record_1
41313
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
41314
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
41315
+ 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]]
41316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41317
+  (0.0ms) SAVEPOINT active_record_1
41318
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
41319
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
41320
+ 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]]
41321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41322
+  (0.0ms) SAVEPOINT active_record_1
41323
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
41324
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
41325
+ 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]]
41326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41327
+  (0.0ms) SAVEPOINT active_record_1
41328
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
41329
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
41330
+ 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]]
41331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41332
+  (0.0ms) SAVEPOINT active_record_1
41333
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
41334
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
41335
+ SQL (0.2ms) 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]]
41336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41337
+  (0.0ms) SAVEPOINT active_record_1
41338
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
41339
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
41340
+ 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]]
41341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41342
+  (0.0ms) SAVEPOINT active_record_1
41343
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
41344
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
41345
+ 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]]
41346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41347
+  (0.0ms) SAVEPOINT active_record_1
41348
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
41349
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
41350
+ 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]]
41351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41352
+  (0.0ms) SAVEPOINT active_record_1
41353
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
41354
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
41355
+ 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]]
41356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41357
+  (0.0ms) SAVEPOINT active_record_1
41358
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
41359
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
41360
+ 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]]
41361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41362
+  (0.0ms) SAVEPOINT active_record_1
41363
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
41364
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
41365
+ 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]]
41366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41367
+  (0.0ms) SAVEPOINT active_record_1
41368
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
41369
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
41370
+ 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]]
41371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41372
+  (0.0ms) SAVEPOINT active_record_1
41373
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
41374
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
41375
+ 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]]
41376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41377
+  (0.0ms) SAVEPOINT active_record_1
41378
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
41379
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
41380
+ 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]]
41381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41382
+  (0.0ms) SAVEPOINT active_record_1
41383
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
41384
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
41385
+ 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]]
41386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41387
+  (0.0ms) SAVEPOINT active_record_1
41388
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
41389
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
41390
+ 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]]
41391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41392
+  (0.0ms) SAVEPOINT active_record_1
41393
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
41394
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
41395
+ 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]]
41396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41397
+  (0.0ms) SAVEPOINT active_record_1
41398
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
41399
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
41400
+ 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]]
41401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41402
+  (0.0ms) SAVEPOINT active_record_1
41403
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
41404
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
41405
+ 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]]
41406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41407
+  (0.0ms) SAVEPOINT active_record_1
41408
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
41409
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
41410
+ 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]]
41411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41412
+  (0.0ms) SAVEPOINT active_record_1
41413
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
41414
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
41415
+ 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]]
41416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41417
+  (0.0ms) SAVEPOINT active_record_1
41418
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
41419
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
41420
+ 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]]
41421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41422
+  (0.0ms) SAVEPOINT active_record_1
41423
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
41424
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
41425
+ 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]]
41426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41427
+  (0.1ms) rollback transaction
41428
+  (0.0ms) begin transaction
41429
+  (0.0ms) rollback transaction
41430
+  (0.0ms) begin transaction
41431
+  (0.0ms) SAVEPOINT active_record_1
41432
+ SQL (0.4ms) 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]]
41433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41434
+  (0.0ms) SAVEPOINT active_record_1
41435
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41436
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41437
+ 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]]
41438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41439
+  (0.0ms) SAVEPOINT active_record_1
41440
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41441
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41442
+ 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]]
41443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41444
+  (0.0ms) SAVEPOINT active_record_1
41445
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41446
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41447
+ 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]]
41448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41449
+  (0.0ms) SAVEPOINT active_record_1
41450
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41451
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41452
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
41453
+  (0.1ms) SAVEPOINT active_record_1
41454
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41455
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
41456
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
41457
+  (0.3ms) SAVEPOINT active_record_1
41458
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41459
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41460
+ SQL (0.2ms) 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]]
41461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41462
+  (0.2ms) SAVEPOINT active_record_1
41463
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41464
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
41465
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
41466
+ SQL (0.1ms) UPDATE "regions" SET
41467
+ rgtp = 0 * rgtp + 1 * rgtq,
41468
+ rgtq = -1 * rgtp + 3 * rgtq
41469
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
41470
+ "regions".lft BETWEEN 0.5 AND 1.0
41471
+ )
41472
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
41473
+ "regions".lft BETWEEN 0.5 AND 1.0
41474
+ )
41475
+ SQL (0.1ms) UPDATE "regions" SET
41476
+ lftp = 0 * lftp + 1 * lftq,
41477
+ lftq = -1 * lftp + 3 * lftq
41478
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
41479
+ "regions".lft BETWEEN 0.5 AND 1.0
41480
+ )
41481
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
41482
+ "regions".lft BETWEEN 0.5 AND 1.0
41483
+ )
41484
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
41485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41486
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
41487
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
41488
+  (0.2ms) rollback transaction
41489
+  (0.0ms) begin transaction
41490
+  (0.0ms) SAVEPOINT active_record_1
41491
+ SQL (1.0ms) 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]]
41492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41493
+  (0.1ms) SAVEPOINT active_record_1
41494
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41495
+ Region Load (15.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41496
+ SQL (0.3ms) 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]]
41497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41498
+  (0.1ms) SAVEPOINT active_record_1
41499
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41500
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41501
+ 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", "Antarctica"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
41502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41503
+  (0.1ms) SAVEPOINT active_record_1
41504
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41505
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41506
+ 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", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
41507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41508
+  (0.1ms) SAVEPOINT active_record_1
41509
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41510
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41511
+ 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]]
41512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41513
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
41514
+  (0.1ms) rollback transaction
41515
+  (0.0ms) begin transaction
41516
+  (0.0ms) SAVEPOINT active_record_1
41517
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41518
+ SQL (0.5ms) 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]]
41519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41520
+  (0.0ms) SAVEPOINT active_record_1
41521
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41522
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41523
+ 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]]
41524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41525
+  (0.0ms) SAVEPOINT active_record_1
41526
+ Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41527
+ 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]]
41528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41529
+  (0.0ms) SAVEPOINT active_record_1
41530
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41531
+ 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]]
41532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41533
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
41534
+ 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
41535
+ 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
41536
+  (0.1ms) SAVEPOINT active_record_1
41537
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
41538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41539
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
41540
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
41541
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41542
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
41543
+  (0.7ms) SAVEPOINT active_record_1
41544
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
41545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41546
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
41547
+ 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
41548
+  (0.0ms) SAVEPOINT active_record_1
41549
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
41550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41551
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
41552
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
41553
+  (0.0ms) SAVEPOINT active_record_1
41554
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
41555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41556
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
41557
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
41558
+  (0.2ms) rollback transaction
41559
+  (0.0ms) begin transaction
41560
+  (0.0ms) SAVEPOINT active_record_1
41561
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41562
+ SQL (0.5ms) 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]]
41563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41564
+  (0.1ms) SAVEPOINT active_record_1
41565
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41566
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41567
+ 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]]
41568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41569
+  (0.0ms) SAVEPOINT active_record_1
41570
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41571
+ 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]]
41572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41573
+ 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)
41574
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
41575
+ "regions".lft BETWEEN 0.5 AND 1.0
41576
+ )
41577
+  (0.1ms) rollback transaction
41578
+  (0.0ms) begin transaction
41579
+  (0.0ms) SAVEPOINT active_record_1
41580
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41581
+ SQL (0.4ms) 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]]
41582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41583
+  (0.0ms) SAVEPOINT active_record_1
41584
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41585
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41586
+ 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]]
41587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41588
+  (0.0ms) SAVEPOINT active_record_1
41589
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41590
+ 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]]
41591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41592
+  (0.0ms) SAVEPOINT active_record_1
41593
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41594
+ 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]]
41595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41596
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
41597
+  (0.2ms) rollback transaction
41598
+  (0.0ms) begin transaction
41599
+  (0.0ms) SAVEPOINT active_record_1
41600
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41601
+ SQL (0.6ms) 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]]
41602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41603
+  (0.1ms) SAVEPOINT active_record_1
41604
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41605
+ SQL (0.2ms) 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]]
41606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41607
+  (0.0ms) SAVEPOINT active_record_1
41608
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
41609
+ 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]]
41610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41611
+  (0.2ms) rollback transaction
41612
+  (0.1ms) begin transaction
41613
+  (0.0ms) SAVEPOINT active_record_1
41614
+ SQL (12.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]]
41615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41616
+  (0.1ms) SAVEPOINT active_record_1
41617
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41618
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41619
+ 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]]
41620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41621
+  (0.0ms) SAVEPOINT active_record_1
41622
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41623
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41624
+ 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]]
41625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41626
+  (0.0ms) SAVEPOINT active_record_1
41627
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41628
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41629
+ 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]]
41630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41631
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL)
41632
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 1 AND lftp = 0)
41633
+ 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)
41634
+ 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)
41635
+  (0.2ms) rollback transaction
41636
+  (0.0ms) begin transaction
41637
+  (0.0ms) SAVEPOINT active_record_1
41638
+ SQL (0.5ms) 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]]
41639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41640
+  (0.0ms) SAVEPOINT active_record_1
41641
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
41642
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41643
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41644
+ 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]]
41645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41646
+  (0.1ms) rollback transaction
41647
+  (0.0ms) begin transaction
41648
+  (0.0ms) SAVEPOINT active_record_1
41649
+ SQL (0.4ms) 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]]
41650
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41651
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41652
+ 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]]
41653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41654
+  (0.1ms) rollback transaction
41655
+  (0.0ms) begin transaction
41656
+  (0.0ms) SAVEPOINT active_record_1
41657
+ SQL (0.4ms) 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]]
41658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41659
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
41660
+  (0.2ms) rollback transaction
41661
+  (0.0ms) begin transaction
41662
+  (0.0ms) SAVEPOINT active_record_1
41663
+ SQL (0.4ms) 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]]
41664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41665
+  (0.1ms) SAVEPOINT active_record_1
41666
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41667
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41668
+ 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]]
41669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41670
+  (0.0ms) SAVEPOINT active_record_1
41671
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41672
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41673
+ 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]]
41674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41675
+  (0.0ms) SAVEPOINT active_record_1
41676
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41677
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41678
+ 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]]
41679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41680
+  (0.1ms) rollback transaction
41681
+  (0.0ms) begin transaction
41682
+  (0.0ms) SAVEPOINT active_record_1
41683
+ SQL (0.4ms) 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]]
41684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41685
+  (0.1ms) SAVEPOINT active_record_1
41686
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41687
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41688
+ 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]]
41689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41690
+  (0.0ms) SAVEPOINT active_record_1
41691
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41692
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41693
+ 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]]
41694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41695
+  (0.0ms) SAVEPOINT active_record_1
41696
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41697
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41698
+ SQL (0.4ms) 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]]
41699
+  (1.8ms) RELEASE SAVEPOINT active_record_1
41700
+  (0.2ms) rollback transaction
41701
+  (0.0ms) begin transaction
41702
+  (0.1ms) SAVEPOINT active_record_1
41703
+ SQL (0.5ms) 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]]
41704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41705
+  (0.0ms) SAVEPOINT active_record_1
41706
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41707
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41708
+ 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]]
41709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41710
+  (0.0ms) SAVEPOINT active_record_1
41711
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41712
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41713
+ 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]]
41714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41715
+  (0.0ms) SAVEPOINT active_record_1
41716
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41717
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41718
+ 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]]
41719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41720
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
41721
+ "regions".lft BETWEEN 0.0 AND 1.0
41722
+ )
41723
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
41724
+ "regions".lft BETWEEN 0.5 AND 1.0
41725
+ )
41726
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
41727
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
41728
+ )
41729
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
41730
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
41731
+ )
41732
+  (0.1ms) rollback transaction
41733
+  (0.0ms) begin transaction
41734
+  (0.0ms) SAVEPOINT active_record_1
41735
+ SQL (0.5ms) 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]]
41736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41737
+  (0.0ms) SAVEPOINT active_record_1
41738
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41739
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41740
+ 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]]
41741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41742
+  (0.0ms) SAVEPOINT active_record_1
41743
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41744
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41745
+ 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]]
41746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41747
+  (0.0ms) SAVEPOINT active_record_1
41748
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41749
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
41750
+ 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]]
41751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41752
+  (0.0ms) SAVEPOINT active_record_1
41753
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2
41754
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3
41755
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
41756
+ SQL (0.1ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 3]]
41757
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4
41758
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
41759
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 4]]
41760
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
41761
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 2]]
41762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41763
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
41764
+ "regions".lft BETWEEN 0.0 AND 1.0
41765
+ )
41766
+  (0.1ms) rollback transaction
41767
+  (0.0ms) begin transaction
41768
+  (0.0ms) SAVEPOINT active_record_1
41769
+ 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", ""], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
41770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41771
+  (0.0ms) SAVEPOINT active_record_1
41772
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41773
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41774
+ 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]]
41775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41776
+  (0.0ms) SAVEPOINT active_record_1
41777
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
41778
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
41779
+ 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]]
41780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41781
+  (0.0ms) SAVEPOINT active_record_1
41782
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
41783
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
41784
+ 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]]
41785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41786
+  (0.0ms) SAVEPOINT active_record_1
41787
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
41788
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
41789
+ 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]]
41790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41791
+  (0.0ms) SAVEPOINT active_record_1
41792
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
41793
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
41794
+ 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]]
41795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41796
+  (0.0ms) SAVEPOINT active_record_1
41797
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
41798
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
41799
+ 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]]
41800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41801
+  (0.0ms) SAVEPOINT active_record_1
41802
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
41803
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
41804
+ 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]]
41805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41806
+  (0.0ms) SAVEPOINT active_record_1
41807
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
41808
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
41809
+ 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]]
41810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41811
+  (0.0ms) SAVEPOINT active_record_1
41812
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
41813
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
41814
+ 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]]
41815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41816
+  (0.0ms) SAVEPOINT active_record_1
41817
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
41818
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
41819
+ 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]]
41820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41821
+  (0.0ms) SAVEPOINT active_record_1
41822
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
41823
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
41824
+ 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]]
41825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41826
+  (0.0ms) SAVEPOINT active_record_1
41827
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
41828
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
41829
+ 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]]
41830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41831
+  (0.0ms) SAVEPOINT active_record_1
41832
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
41833
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
41834
+ 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]]
41835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41836
+  (0.0ms) SAVEPOINT active_record_1
41837
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
41838
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
41839
+ 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]]
41840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41841
+  (0.0ms) SAVEPOINT active_record_1
41842
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
41843
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
41844
+ 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]]
41845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41846
+  (0.0ms) SAVEPOINT active_record_1
41847
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
41848
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
41849
+ 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]]
41850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41851
+  (0.0ms) SAVEPOINT active_record_1
41852
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
41853
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
41854
+ 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]]
41855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41856
+  (0.0ms) SAVEPOINT active_record_1
41857
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
41858
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
41859
+ 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]]
41860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41861
+  (0.0ms) SAVEPOINT active_record_1
41862
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
41863
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
41864
+ 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]]
41865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41866
+  (0.0ms) SAVEPOINT active_record_1
41867
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
41868
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
41869
+ 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]]
41870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41871
+  (0.0ms) SAVEPOINT active_record_1
41872
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
41873
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
41874
+ 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]]
41875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41876
+  (0.0ms) SAVEPOINT active_record_1
41877
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
41878
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
41879
+ 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]]
41880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41881
+  (0.0ms) SAVEPOINT active_record_1
41882
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
41883
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
41884
+ 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]]
41885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41886
+  (0.0ms) SAVEPOINT active_record_1
41887
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
41888
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
41889
+ 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]]
41890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41891
+  (0.0ms) SAVEPOINT active_record_1
41892
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
41893
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
41894
+ 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]]
41895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41896
+  (0.0ms) SAVEPOINT active_record_1
41897
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
41898
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
41899
+ SQL (0.2ms) 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]]
41900
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41901
+  (0.0ms) SAVEPOINT active_record_1
41902
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
41903
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
41904
+ 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]]
41905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41906
+  (0.0ms) SAVEPOINT active_record_1
41907
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
41908
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
41909
+ 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]]
41910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41911
+  (0.0ms) SAVEPOINT active_record_1
41912
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
41913
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
41914
+ 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]]
41915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41916
+  (0.0ms) SAVEPOINT active_record_1
41917
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
41918
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
41919
+ 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]]
41920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41921
+  (0.0ms) SAVEPOINT active_record_1
41922
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
41923
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
41924
+ 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]]
41925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41926
+  (0.0ms) SAVEPOINT active_record_1
41927
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
41928
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
41929
+ 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]]
41930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41931
+  (0.0ms) SAVEPOINT active_record_1
41932
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
41933
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
41934
+ 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]]
41935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41936
+  (0.0ms) SAVEPOINT active_record_1
41937
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
41938
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
41939
+ 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]]
41940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41941
+  (0.0ms) SAVEPOINT active_record_1
41942
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
41943
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
41944
+ 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]]
41945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41946
+  (0.0ms) SAVEPOINT active_record_1
41947
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
41948
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
41949
+ 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]]
41950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41951
+  (0.0ms) SAVEPOINT active_record_1
41952
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
41953
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
41954
+ 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]]
41955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41956
+  (0.0ms) SAVEPOINT active_record_1
41957
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
41958
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
41959
+ 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]]
41960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41961
+  (0.0ms) SAVEPOINT active_record_1
41962
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
41963
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
41964
+ 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]]
41965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41966
+  (0.0ms) SAVEPOINT active_record_1
41967
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
41968
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
41969
+ 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]]
41970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41971
+  (0.0ms) SAVEPOINT active_record_1
41972
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
41973
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
41974
+ 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]]
41975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41976
+  (0.0ms) SAVEPOINT active_record_1
41977
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
41978
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
41979
+ 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]]
41980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41981
+  (0.0ms) SAVEPOINT active_record_1
41982
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
41983
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
41984
+ 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]]
41985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41986
+  (0.0ms) SAVEPOINT active_record_1
41987
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
41988
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
41989
+ 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]]
41990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41991
+  (0.2ms) rollback transaction
41992
+  (0.0ms) begin transaction
41993
+  (0.0ms) rollback transaction
41994
+  (0.0ms) begin transaction
41995
+  (0.0ms) SAVEPOINT active_record_1
41996
+ SQL (0.5ms) 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]]
41997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41998
+  (0.0ms) SAVEPOINT active_record_1
41999
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42000
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42001
+ 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]]
42002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42003
+  (0.0ms) SAVEPOINT active_record_1
42004
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42005
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42006
+ 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]]
42007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42008
+  (0.0ms) SAVEPOINT active_record_1
42009
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42010
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42011
+ 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]]
42012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42013
+  (0.0ms) SAVEPOINT active_record_1
42014
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42015
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42016
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
42017
+  (0.0ms) SAVEPOINT active_record_1
42018
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42019
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42020
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
42021
+  (0.0ms) SAVEPOINT active_record_1
42022
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42023
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42024
+ 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]]
42025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42026
+  (0.0ms) SAVEPOINT active_record_1
42027
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42028
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
42029
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
42030
+ SQL (0.1ms) UPDATE "regions" SET
42031
+ rgtp = 0 * rgtp + 1 * rgtq,
42032
+ rgtq = -1 * rgtp + 3 * rgtq
42033
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42034
+ "regions".lft BETWEEN 0.5 AND 1.0
42035
+ )
42036
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42037
+ "regions".lft BETWEEN 0.5 AND 1.0
42038
+ )
42039
+ SQL (0.1ms) UPDATE "regions" SET
42040
+ lftp = 0 * lftp + 1 * lftq,
42041
+ lftq = -1 * lftp + 3 * lftq
42042
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42043
+ "regions".lft BETWEEN 0.5 AND 1.0
42044
+ )
42045
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42046
+ "regions".lft BETWEEN 0.5 AND 1.0
42047
+ )
42048
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
42049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42050
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42051
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
42052
+  (0.2ms) rollback transaction
42053
+  (0.0ms) begin transaction
42054
+  (0.0ms) SAVEPOINT active_record_1
42055
+ SQL (0.4ms) 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]]
42056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42057
+  (0.0ms) SAVEPOINT active_record_1
42058
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42059
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42060
+ 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]]
42061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42062
+  (0.0ms) SAVEPOINT active_record_1
42063
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42064
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42065
+ 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", "Antarctica"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
42066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42067
+  (0.0ms) SAVEPOINT active_record_1
42068
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42069
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42070
+ 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]]
42071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42072
+  (0.1ms) SAVEPOINT active_record_1
42073
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42074
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42075
+ 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]]
42076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42077
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
42078
+  (0.1ms) rollback transaction
42079
+  (0.0ms) begin transaction
42080
+  (0.0ms) SAVEPOINT active_record_1
42081
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42082
+ SQL (0.4ms) 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]]
42083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42084
+  (0.2ms) SAVEPOINT active_record_1
42085
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42086
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42087
+ 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]]
42088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42089
+  (0.0ms) SAVEPOINT active_record_1
42090
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42091
+ 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]]
42092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42093
+  (0.0ms) SAVEPOINT active_record_1
42094
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42095
+ 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]]
42096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42097
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
42098
+ 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
42099
+ 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
42100
+  (0.0ms) SAVEPOINT active_record_1
42101
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
42102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42103
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42104
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
42105
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42106
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
42107
+  (0.0ms) SAVEPOINT active_record_1
42108
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
42109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42110
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42111
+ 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
42112
+  (0.0ms) SAVEPOINT active_record_1
42113
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
42114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42115
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42116
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
42117
+  (0.0ms) SAVEPOINT active_record_1
42118
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
42119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42120
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42121
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
42122
+  (0.1ms) rollback transaction
42123
+  (0.0ms) begin transaction
42124
+  (0.0ms) SAVEPOINT active_record_1
42125
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42126
+ SQL (0.4ms) 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]]
42127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42128
+  (0.0ms) SAVEPOINT active_record_1
42129
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42130
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42131
+ 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]]
42132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42133
+  (0.0ms) SAVEPOINT active_record_1
42134
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42135
+ 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]]
42136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42137
+ 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)
42138
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
42139
+ "regions".lft BETWEEN 0.5 AND 1.0
42140
+ )
42141
+  (0.1ms) rollback transaction
42142
+  (0.0ms) begin transaction
42143
+  (0.0ms) SAVEPOINT active_record_1
42144
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42145
+ SQL (0.4ms) 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]]
42146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42147
+  (0.0ms) SAVEPOINT active_record_1
42148
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42149
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42150
+ 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]]
42151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42152
+  (0.0ms) SAVEPOINT active_record_1
42153
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42154
+ 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]]
42155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42156
+  (0.0ms) SAVEPOINT active_record_1
42157
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42158
+ 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]]
42159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42160
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
42161
+  (0.1ms) rollback transaction
42162
+  (0.0ms) begin transaction
42163
+  (0.0ms) SAVEPOINT active_record_1
42164
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42165
+ SQL (0.4ms) 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]]
42166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42167
+  (0.0ms) SAVEPOINT active_record_1
42168
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42169
+ 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]]
42170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42171
+  (0.0ms) SAVEPOINT active_record_1
42172
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42173
+ 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]]
42174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42175
+  (0.1ms) rollback transaction
42176
+  (0.1ms) begin transaction
42177
+  (0.0ms) SAVEPOINT active_record_1
42178
+ SQL (12.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]]
42179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42180
+  (0.2ms) SAVEPOINT active_record_1
42181
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42182
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42183
+ 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]]
42184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42185
+  (0.0ms) SAVEPOINT active_record_1
42186
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42187
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42188
+ 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]]
42189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42190
+  (0.0ms) SAVEPOINT active_record_1
42191
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42192
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42193
+ 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]]
42194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42195
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL)
42196
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 1 AND lftp = 0)
42197
+ 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)
42198
+ 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)
42199
+  (0.2ms) rollback transaction
42200
+  (0.0ms) begin transaction
42201
+  (0.0ms) SAVEPOINT active_record_1
42202
+ SQL (0.5ms) 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]]
42203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42204
+  (0.1ms) SAVEPOINT active_record_1
42205
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
42206
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42207
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42208
+ 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]]
42209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42210
+  (0.1ms) rollback transaction
42211
+  (0.0ms) begin transaction
42212
+  (0.0ms) SAVEPOINT active_record_1
42213
+ SQL (0.4ms) 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]]
42214
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42215
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42216
+ 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]]
42217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42218
+  (0.1ms) rollback transaction
42219
+  (0.0ms) begin transaction
42220
+  (0.0ms) SAVEPOINT active_record_1
42221
+ SQL (0.4ms) 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]]
42222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42223
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
42224
+  (0.1ms) rollback transaction
42225
+  (0.0ms) begin transaction
42226
+  (0.0ms) SAVEPOINT active_record_1
42227
+ SQL (0.4ms) 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]]
42228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42229
+  (0.0ms) SAVEPOINT active_record_1
42230
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42231
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42232
+ 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]]
42233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42234
+  (0.0ms) SAVEPOINT active_record_1
42235
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42236
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42237
+ 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]]
42238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42239
+  (0.1ms) SAVEPOINT active_record_1
42240
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42241
+ Region Load (21.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42242
+ 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]]
42243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42244
+  (0.1ms) rollback transaction
42245
+  (0.0ms) begin transaction
42246
+  (0.0ms) SAVEPOINT active_record_1
42247
+ 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]]
42248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42249
+  (0.0ms) SAVEPOINT active_record_1
42250
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42251
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42252
+ 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]]
42253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42254
+  (0.0ms) SAVEPOINT active_record_1
42255
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42256
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42257
+ 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]]
42258
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42259
+  (0.0ms) SAVEPOINT active_record_1
42260
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42261
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42262
+ 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]]
42263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42264
+  (0.1ms) rollback transaction
42265
+  (0.0ms) begin transaction
42266
+  (0.0ms) SAVEPOINT active_record_1
42267
+ 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]]
42268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42269
+  (3.0ms) SAVEPOINT active_record_1
42270
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42271
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42272
+ 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]]
42273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42274
+  (0.0ms) SAVEPOINT active_record_1
42275
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42276
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42277
+ 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]]
42278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42279
+  (0.0ms) SAVEPOINT active_record_1
42280
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42281
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42282
+ 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]]
42283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42284
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
42285
+ "regions".lft BETWEEN 0.0 AND 1.0
42286
+ )
42287
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42288
+ "regions".lft BETWEEN 0.5 AND 1.0
42289
+ )
42290
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
42291
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
42292
+ )
42293
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
42294
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
42295
+ )
42296
+  (0.1ms) rollback transaction
42297
+  (0.0ms) begin transaction
42298
+  (0.0ms) SAVEPOINT active_record_1
42299
+ SQL (0.4ms) 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]]
42300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42301
+  (0.0ms) SAVEPOINT active_record_1
42302
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42303
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42304
+ 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]]
42305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42306
+  (0.0ms) SAVEPOINT active_record_1
42307
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42308
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42309
+ 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]]
42310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42311
+  (0.0ms) SAVEPOINT active_record_1
42312
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42313
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42314
+ 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]]
42315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42316
+  (0.0ms) SAVEPOINT active_record_1
42317
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2
42318
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3
42319
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42320
+ SQL (0.1ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 3]]
42321
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4
42322
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
42323
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 4]]
42324
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42325
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 2]]
42326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42327
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
42328
+ "regions".lft BETWEEN 0.0 AND 1.0
42329
+ )
42330
+  (0.1ms) rollback transaction
42331
+  (0.0ms) begin transaction
42332
+  (0.0ms) SAVEPOINT active_record_1
42333
+ SQL (0.4ms) 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]]
42334
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42335
+  (0.0ms) SAVEPOINT active_record_1
42336
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42337
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42338
+ 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]]
42339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42340
+  (0.0ms) SAVEPOINT active_record_1
42341
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42342
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42343
+ 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]]
42344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42345
+  (0.0ms) SAVEPOINT active_record_1
42346
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42347
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
42348
+ 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]]
42349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42350
+  (0.0ms) SAVEPOINT active_record_1
42351
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42352
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
42353
+ 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]]
42354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42355
+  (0.0ms) SAVEPOINT active_record_1
42356
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
42357
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
42358
+ 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]]
42359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42360
+  (0.0ms) SAVEPOINT active_record_1
42361
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
42362
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
42363
+ SQL (2.5ms) 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]]
42364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42365
+  (0.0ms) SAVEPOINT active_record_1
42366
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
42367
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
42368
+ 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]]
42369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42370
+  (0.0ms) SAVEPOINT active_record_1
42371
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
42372
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
42373
+ 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]]
42374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42375
+  (0.0ms) SAVEPOINT active_record_1
42376
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
42377
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
42378
+ 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]]
42379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42380
+  (0.0ms) SAVEPOINT active_record_1
42381
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
42382
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
42383
+ 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]]
42384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42385
+  (0.0ms) SAVEPOINT active_record_1
42386
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
42387
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
42388
+ 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]]
42389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42390
+  (0.0ms) SAVEPOINT active_record_1
42391
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
42392
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
42393
+ 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]]
42394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42395
+  (0.0ms) SAVEPOINT active_record_1
42396
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
42397
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
42398
+ 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]]
42399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42400
+  (0.0ms) SAVEPOINT active_record_1
42401
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
42402
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
42403
+ 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]]
42404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42405
+  (0.0ms) SAVEPOINT active_record_1
42406
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
42407
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
42408
+ 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]]
42409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42410
+  (0.0ms) SAVEPOINT active_record_1
42411
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
42412
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
42413
+ 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]]
42414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42415
+  (0.0ms) SAVEPOINT active_record_1
42416
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
42417
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
42418
+ 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]]
42419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42420
+  (0.0ms) SAVEPOINT active_record_1
42421
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
42422
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
42423
+ 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]]
42424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42425
+  (0.0ms) SAVEPOINT active_record_1
42426
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
42427
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
42428
+ 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]]
42429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42430
+  (0.0ms) SAVEPOINT active_record_1
42431
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
42432
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
42433
+ 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]]
42434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42435
+  (0.0ms) SAVEPOINT active_record_1
42436
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
42437
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
42438
+ 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]]
42439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42440
+  (0.0ms) SAVEPOINT active_record_1
42441
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
42442
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
42443
+ 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]]
42444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42445
+  (0.0ms) SAVEPOINT active_record_1
42446
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
42447
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
42448
+ 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]]
42449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42450
+  (0.0ms) SAVEPOINT active_record_1
42451
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
42452
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
42453
+ 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]]
42454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42455
+  (0.0ms) SAVEPOINT active_record_1
42456
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
42457
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
42458
+ 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]]
42459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42460
+  (0.0ms) SAVEPOINT active_record_1
42461
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
42462
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
42463
+ SQL (0.2ms) 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]]
42464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42465
+  (0.0ms) SAVEPOINT active_record_1
42466
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
42467
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
42468
+ 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]]
42469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42470
+  (0.0ms) SAVEPOINT active_record_1
42471
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
42472
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
42473
+ 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]]
42474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42475
+  (0.0ms) SAVEPOINT active_record_1
42476
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
42477
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
42478
+ 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]]
42479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42480
+  (0.0ms) SAVEPOINT active_record_1
42481
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
42482
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
42483
+ 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]]
42484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42485
+  (0.0ms) SAVEPOINT active_record_1
42486
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
42487
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
42488
+ 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]]
42489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42490
+  (0.0ms) SAVEPOINT active_record_1
42491
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
42492
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
42493
+ 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]]
42494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42495
+  (0.0ms) SAVEPOINT active_record_1
42496
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
42497
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
42498
+ 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]]
42499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42500
+  (0.0ms) SAVEPOINT active_record_1
42501
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
42502
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
42503
+ 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]]
42504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42505
+  (0.0ms) SAVEPOINT active_record_1
42506
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
42507
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
42508
+ 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]]
42509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42510
+  (0.0ms) SAVEPOINT active_record_1
42511
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
42512
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
42513
+ 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]]
42514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42515
+  (0.0ms) SAVEPOINT active_record_1
42516
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
42517
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
42518
+ 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]]
42519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42520
+  (0.0ms) SAVEPOINT active_record_1
42521
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
42522
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
42523
+ 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]]
42524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42525
+  (0.3ms) SAVEPOINT active_record_1
42526
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
42527
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
42528
+ 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]]
42529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42530
+  (0.0ms) SAVEPOINT active_record_1
42531
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
42532
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
42533
+ 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]]
42534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42535
+  (0.0ms) SAVEPOINT active_record_1
42536
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
42537
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
42538
+ 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]]
42539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42540
+  (0.1ms) SAVEPOINT active_record_1
42541
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
42542
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
42543
+ 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]]
42544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42545
+  (0.0ms) SAVEPOINT active_record_1
42546
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
42547
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
42548
+ 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]]
42549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42550
+  (0.0ms) SAVEPOINT active_record_1
42551
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
42552
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
42553
+ 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]]
42554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42555
+  (0.1ms) rollback transaction
42556
+  (0.0ms) begin transaction
42557
+  (0.0ms) rollback transaction
42558
+  (0.0ms) begin transaction
42559
+  (0.0ms) SAVEPOINT active_record_1
42560
+ SQL (0.5ms) 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]]
42561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42562
+  (0.0ms) SAVEPOINT active_record_1
42563
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42564
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42565
+ 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]]
42566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42567
+  (0.0ms) SAVEPOINT active_record_1
42568
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42569
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42570
+ 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]]
42571
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42572
+  (0.0ms) SAVEPOINT active_record_1
42573
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42574
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42575
+ 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]]
42576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42577
+  (0.0ms) SAVEPOINT active_record_1
42578
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42579
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42580
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
42581
+  (0.0ms) SAVEPOINT active_record_1
42582
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42583
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42584
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
42585
+  (0.0ms) SAVEPOINT active_record_1
42586
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42587
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42588
+ 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]]
42589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42590
+  (0.0ms) SAVEPOINT active_record_1
42591
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42592
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
42593
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
42594
+ SQL (0.1ms) UPDATE "regions" SET
42595
+ rgtp = 0 * rgtp + 1 * rgtq,
42596
+ rgtq = -1 * rgtp + 3 * rgtq
42597
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42598
+ "regions".lft BETWEEN 0.5 AND 1.0
42599
+ )
42600
+ SQL (0.2ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42601
+ "regions".lft BETWEEN 0.5 AND 1.0
42602
+ )
42603
+ SQL (0.1ms) UPDATE "regions" SET
42604
+ lftp = 0 * lftp + 1 * lftq,
42605
+ lftq = -1 * lftp + 3 * lftq
42606
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42607
+ "regions".lft BETWEEN 0.5 AND 1.0
42608
+ )
42609
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42610
+ "regions".lft BETWEEN 0.5 AND 1.0
42611
+ )
42612
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
42613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42614
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42615
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
42616
+  (0.2ms) rollback transaction
42617
+  (0.0ms) begin transaction
42618
+  (0.0ms) SAVEPOINT active_record_1
42619
+ SQL (0.5ms) 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]]
42620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42621
+  (0.0ms) SAVEPOINT active_record_1
42622
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42623
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42624
+ 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]]
42625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42626
+  (0.0ms) SAVEPOINT active_record_1
42627
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42628
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42629
+ 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", "Antarctica"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
42630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42631
+  (0.0ms) SAVEPOINT active_record_1
42632
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42633
+ Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42634
+ SQL (0.3ms) 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]]
42635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42636
+  (0.4ms) SAVEPOINT active_record_1
42637
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42638
+ Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42639
+ SQL (0.4ms) 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]]
42640
+  (0.7ms) RELEASE SAVEPOINT active_record_1
42641
+ Region Load (0.7ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
42642
+  (0.3ms) rollback transaction
42643
+  (0.1ms) begin transaction
42644
+  (0.1ms) SAVEPOINT active_record_1
42645
+ Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42646
+ SQL (0.5ms) 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]]
42647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42648
+  (0.1ms) SAVEPOINT active_record_1
42649
+ Region Load (15.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42650
+ Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42651
+ SQL (0.5ms) 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]]
42652
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42653
+  (0.1ms) SAVEPOINT active_record_1
42654
+ Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42655
+ SQL (0.3ms) 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]]
42656
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42657
+  (0.2ms) SAVEPOINT active_record_1
42658
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42659
+ 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]]
42660
+  (0.4ms) RELEASE SAVEPOINT active_record_1
42661
+ SQL (0.2ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
42662
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42663
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
42664
+  (0.0ms) SAVEPOINT active_record_1
42665
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
42666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42667
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42668
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
42669
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42670
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
42671
+  (0.0ms) SAVEPOINT active_record_1
42672
+  (0.2ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
42673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42674
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42675
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
42676
+  (0.0ms) SAVEPOINT active_record_1
42677
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
42678
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42679
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42680
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
42681
+  (0.1ms) SAVEPOINT active_record_1
42682
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
42683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42684
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
42685
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
42686
+  (0.3ms) rollback transaction
42687
+  (0.1ms) begin transaction
42688
+  (0.1ms) SAVEPOINT active_record_1
42689
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42690
+ SQL (0.8ms) 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]]
42691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42692
+  (0.1ms) SAVEPOINT active_record_1
42693
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42694
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42695
+ 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]]
42696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42697
+  (0.1ms) SAVEPOINT active_record_1
42698
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42699
+ 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]]
42700
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42701
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
42702
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
42703
+ "regions".lft BETWEEN 0.5 AND 1.0
42704
+ )
42705
+  (0.2ms) rollback transaction
42706
+  (0.0ms) begin transaction
42707
+  (0.1ms) SAVEPOINT active_record_1
42708
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42709
+ SQL (0.8ms) 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]]
42710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42711
+  (0.1ms) SAVEPOINT active_record_1
42712
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42713
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42714
+ 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]]
42715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42716
+  (0.1ms) SAVEPOINT active_record_1
42717
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42718
+ 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]]
42719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42720
+  (0.7ms) SAVEPOINT active_record_1
42721
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42722
+ 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]]
42723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42724
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
42725
+  (0.2ms) rollback transaction
42726
+  (0.1ms) begin transaction
42727
+  (0.0ms) SAVEPOINT active_record_1
42728
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42729
+ SQL (0.4ms) 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]]
42730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42731
+  (0.0ms) SAVEPOINT active_record_1
42732
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42733
+ 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]]
42734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42735
+  (0.1ms) SAVEPOINT active_record_1
42736
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
42737
+ 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]]
42738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42739
+  (0.1ms) rollback transaction
42740
+  (0.1ms) begin transaction
42741
+  (0.0ms) SAVEPOINT active_record_1
42742
+ SQL (12.0ms) 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]]
42743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42744
+  (0.1ms) SAVEPOINT active_record_1
42745
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42746
+ Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42747
+ 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]]
42748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42749
+  (0.0ms) SAVEPOINT active_record_1
42750
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42751
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42752
+ 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]]
42753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42754
+  (0.0ms) SAVEPOINT active_record_1
42755
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42756
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42757
+ 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]]
42758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42759
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL)
42760
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 1 AND lftp = 0)
42761
+ 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)
42762
+ 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)
42763
+  (0.2ms) rollback transaction
42764
+  (0.0ms) begin transaction
42765
+  (0.0ms) SAVEPOINT active_record_1
42766
+ SQL (0.5ms) 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]]
42767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42768
+  (0.0ms) SAVEPOINT active_record_1
42769
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
42770
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42771
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42772
+ 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]]
42773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42774
+  (0.1ms) rollback transaction
42775
+  (0.0ms) begin transaction
42776
+  (0.0ms) SAVEPOINT active_record_1
42777
+ SQL (0.4ms) 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]]
42778
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42779
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42780
+ 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]]
42781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42782
+  (0.1ms) rollback transaction
42783
+  (0.0ms) begin transaction
42784
+  (0.0ms) SAVEPOINT active_record_1
42785
+ SQL (0.4ms) 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]]
42786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42787
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
42788
+  (0.1ms) rollback transaction
42789
+  (0.0ms) begin transaction
42790
+  (0.0ms) SAVEPOINT active_record_1
42791
+ SQL (0.4ms) 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]]
42792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42793
+  (0.0ms) SAVEPOINT active_record_1
42794
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42795
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42796
+ 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]]
42797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42798
+  (0.0ms) SAVEPOINT active_record_1
42799
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42800
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42801
+ 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]]
42802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42803
+  (0.0ms) SAVEPOINT active_record_1
42804
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42805
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42806
+ 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]]
42807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42808
+  (0.1ms) rollback transaction
42809
+  (0.0ms) begin transaction
42810
+  (0.0ms) SAVEPOINT active_record_1
42811
+ SQL (0.4ms) 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]]
42812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42813
+  (0.0ms) SAVEPOINT active_record_1
42814
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42815
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42816
+ 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]]
42817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42818
+  (0.0ms) SAVEPOINT active_record_1
42819
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42820
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42821
+ 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]]
42822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42823
+  (0.0ms) SAVEPOINT active_record_1
42824
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42825
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42826
+ SQL (0.4ms) 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]]
42827
+  (1.8ms) RELEASE SAVEPOINT active_record_1
42828
+  (0.2ms) rollback transaction
42829
+  (0.0ms) begin transaction
42830
+  (0.0ms) SAVEPOINT active_record_1
42831
+ SQL (0.5ms) 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]]
42832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42833
+  (0.0ms) SAVEPOINT active_record_1
42834
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42835
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42836
+ 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]]
42837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42838
+  (0.0ms) SAVEPOINT active_record_1
42839
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42840
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42841
+ 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]]
42842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42843
+  (0.0ms) SAVEPOINT active_record_1
42844
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42845
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42846
+ 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]]
42847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42848
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
42849
+ "regions".lft BETWEEN 0.0 AND 1.0
42850
+ )
42851
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
42852
+ "regions".lft BETWEEN 0.5 AND 1.0
42853
+ )
42854
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
42855
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
42856
+ )
42857
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
42858
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
42859
+ )
42860
+  (0.1ms) rollback transaction
42861
+  (0.0ms) begin transaction
42862
+  (0.0ms) SAVEPOINT active_record_1
42863
+ SQL (0.4ms) 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]]
42864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42865
+  (0.0ms) SAVEPOINT active_record_1
42866
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42867
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42868
+ 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]]
42869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42870
+  (0.0ms) SAVEPOINT active_record_1
42871
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42872
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42873
+ 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]]
42874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42875
+  (0.0ms) SAVEPOINT active_record_1
42876
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42877
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
42878
+ 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]]
42879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42880
+  (0.0ms) SAVEPOINT active_record_1
42881
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2
42882
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3
42883
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42884
+ SQL (0.1ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 3]]
42885
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4
42886
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
42887
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 4]]
42888
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
42889
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 2]]
42890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42891
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
42892
+ "regions".lft BETWEEN 0.0 AND 1.0
42893
+ )
42894
+  (0.1ms) rollback transaction
42895
+  (0.0ms) begin transaction
42896
+  (0.0ms) SAVEPOINT active_record_1
42897
+ SQL (0.4ms) 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]]
42898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42899
+  (0.0ms) SAVEPOINT active_record_1
42900
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42901
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42902
+ 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]]
42903
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42904
+  (0.0ms) SAVEPOINT active_record_1
42905
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
42906
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
42907
+ 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]]
42908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42909
+  (0.0ms) SAVEPOINT active_record_1
42910
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42911
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
42912
+ 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]]
42913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42914
+  (0.0ms) SAVEPOINT active_record_1
42915
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
42916
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
42917
+ SQL (0.2ms) 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]]
42918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42919
+  (0.0ms) SAVEPOINT active_record_1
42920
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
42921
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
42922
+ 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]]
42923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42924
+  (0.0ms) SAVEPOINT active_record_1
42925
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
42926
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
42927
+ 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]]
42928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42929
+  (0.0ms) SAVEPOINT active_record_1
42930
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
42931
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
42932
+ 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]]
42933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42934
+  (0.0ms) SAVEPOINT active_record_1
42935
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
42936
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
42937
+ 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]]
42938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42939
+  (0.0ms) SAVEPOINT active_record_1
42940
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
42941
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
42942
+ 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]]
42943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42944
+  (0.0ms) SAVEPOINT active_record_1
42945
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
42946
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
42947
+ 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]]
42948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42949
+  (0.0ms) SAVEPOINT active_record_1
42950
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
42951
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
42952
+ 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]]
42953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42954
+  (0.0ms) SAVEPOINT active_record_1
42955
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
42956
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
42957
+ 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]]
42958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42959
+  (0.0ms) SAVEPOINT active_record_1
42960
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
42961
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
42962
+ 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]]
42963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42964
+  (0.0ms) SAVEPOINT active_record_1
42965
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
42966
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
42967
+ 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]]
42968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42969
+  (0.0ms) SAVEPOINT active_record_1
42970
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
42971
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
42972
+ 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]]
42973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42974
+  (0.0ms) SAVEPOINT active_record_1
42975
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
42976
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
42977
+ 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]]
42978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42979
+  (0.0ms) SAVEPOINT active_record_1
42980
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
42981
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
42982
+ 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]]
42983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42984
+  (0.0ms) SAVEPOINT active_record_1
42985
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
42986
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
42987
+ 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]]
42988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42989
+  (0.0ms) SAVEPOINT active_record_1
42990
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
42991
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
42992
+ 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]]
42993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42994
+  (0.0ms) SAVEPOINT active_record_1
42995
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
42996
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
42997
+ 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]]
42998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42999
+  (0.0ms) SAVEPOINT active_record_1
43000
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
43001
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
43002
+ 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]]
43003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43004
+  (0.0ms) SAVEPOINT active_record_1
43005
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
43006
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
43007
+ 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]]
43008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43009
+  (0.0ms) SAVEPOINT active_record_1
43010
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
43011
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
43012
+ 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]]
43013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43014
+  (0.0ms) SAVEPOINT active_record_1
43015
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
43016
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
43017
+ 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]]
43018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43019
+  (0.0ms) SAVEPOINT active_record_1
43020
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
43021
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
43022
+ 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]]
43023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43024
+  (0.0ms) SAVEPOINT active_record_1
43025
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
43026
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
43027
+ SQL (0.2ms) 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]]
43028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43029
+  (0.0ms) SAVEPOINT active_record_1
43030
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
43031
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
43032
+ 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]]
43033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43034
+  (0.0ms) SAVEPOINT active_record_1
43035
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
43036
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
43037
+ 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]]
43038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43039
+  (0.0ms) SAVEPOINT active_record_1
43040
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
43041
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
43042
+ 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]]
43043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43044
+  (0.0ms) SAVEPOINT active_record_1
43045
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
43046
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
43047
+ 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]]
43048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43049
+  (0.0ms) SAVEPOINT active_record_1
43050
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
43051
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
43052
+ 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]]
43053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43054
+  (0.0ms) SAVEPOINT active_record_1
43055
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
43056
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
43057
+ 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]]
43058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43059
+  (0.0ms) SAVEPOINT active_record_1
43060
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
43061
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
43062
+ 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]]
43063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43064
+  (0.0ms) SAVEPOINT active_record_1
43065
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
43066
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
43067
+ 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]]
43068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43069
+  (0.0ms) SAVEPOINT active_record_1
43070
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
43071
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
43072
+ 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]]
43073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43074
+  (0.0ms) SAVEPOINT active_record_1
43075
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
43076
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
43077
+ 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]]
43078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43079
+  (0.0ms) SAVEPOINT active_record_1
43080
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
43081
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
43082
+ 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]]
43083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43084
+  (0.0ms) SAVEPOINT active_record_1
43085
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
43086
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
43087
+ 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]]
43088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43089
+  (0.0ms) SAVEPOINT active_record_1
43090
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
43091
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
43092
+ 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]]
43093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43094
+  (0.0ms) SAVEPOINT active_record_1
43095
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
43096
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
43097
+ 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]]
43098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43099
+  (0.0ms) SAVEPOINT active_record_1
43100
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
43101
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
43102
+ 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]]
43103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43104
+  (0.0ms) SAVEPOINT active_record_1
43105
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
43106
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
43107
+ 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]]
43108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43109
+  (0.0ms) SAVEPOINT active_record_1
43110
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
43111
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
43112
+ 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]]
43113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43114
+  (0.0ms) SAVEPOINT active_record_1
43115
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
43116
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
43117
+ 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]]
43118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43119
+  (0.2ms) rollback transaction
43120
+  (0.0ms) begin transaction
43121
+  (0.0ms) rollback transaction
43122
+  (0.0ms) begin transaction
43123
+  (0.0ms) SAVEPOINT active_record_1
43124
+ SQL (0.4ms) 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]]
43125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43126
+  (0.0ms) SAVEPOINT active_record_1
43127
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43128
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43129
+ 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]]
43130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43131
+  (0.0ms) SAVEPOINT active_record_1
43132
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43133
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43134
+ 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]]
43135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43136
+  (0.0ms) SAVEPOINT active_record_1
43137
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43138
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43139
+ 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]]
43140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43141
+  (0.0ms) SAVEPOINT active_record_1
43142
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43143
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43144
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
43145
+  (0.0ms) SAVEPOINT active_record_1
43146
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43147
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
43148
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
43149
+  (0.0ms) SAVEPOINT active_record_1
43150
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43151
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43152
+ 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]]
43153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43154
+  (0.0ms) SAVEPOINT active_record_1
43155
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43156
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
43157
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
43158
+ SQL (0.1ms) UPDATE "regions" SET
43159
+ rgtp = 0 * rgtp + 1 * rgtq,
43160
+ rgtq = -1 * rgtp + 3 * rgtq
43161
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43162
+ "regions".lft BETWEEN 0.5 AND 1.0
43163
+ )
43164
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43165
+ "regions".lft BETWEEN 0.5 AND 1.0
43166
+ )
43167
+ SQL (0.1ms) UPDATE "regions" SET
43168
+ lftp = 0 * lftp + 1 * lftq,
43169
+ lftq = -1 * lftp + 3 * lftq
43170
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43171
+ "regions".lft BETWEEN 0.5 AND 1.0
43172
+ )
43173
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43174
+ "regions".lft BETWEEN 0.5 AND 1.0
43175
+ )
43176
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
43177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43178
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
43179
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
43180
+  (0.2ms) rollback transaction
43181
+  (0.0ms) begin transaction
43182
+  (0.0ms) SAVEPOINT active_record_1
43183
+ SQL (0.5ms) 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]]
43184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43185
+  (0.0ms) SAVEPOINT active_record_1
43186
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43187
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43188
+ 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]]
43189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43190
+  (0.0ms) SAVEPOINT active_record_1
43191
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43192
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43193
+ 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", "Antarctica"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
43194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43195
+  (0.0ms) SAVEPOINT active_record_1
43196
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43197
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43198
+ 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]]
43199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43200
+  (0.0ms) SAVEPOINT active_record_1
43201
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43202
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43203
+ 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]]
43204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43205
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
43206
+  (0.1ms) rollback transaction
43207
+  (0.0ms) begin transaction
43208
+  (0.0ms) SAVEPOINT active_record_1
43209
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43210
+ SQL (0.5ms) 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]]
43211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43212
+  (0.0ms) SAVEPOINT active_record_1
43213
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43214
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43215
+ 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]]
43216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43217
+  (0.0ms) SAVEPOINT active_record_1
43218
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43219
+ 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]]
43220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43221
+  (0.0ms) SAVEPOINT active_record_1
43222
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43223
+ 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]]
43224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43225
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
43226
+ 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
43227
+ 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
43228
+  (0.0ms) SAVEPOINT active_record_1
43229
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
43230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43231
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43232
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
43233
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43234
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
43235
+  (0.0ms) SAVEPOINT active_record_1
43236
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
43237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43238
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43239
+ 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
43240
+  (0.0ms) SAVEPOINT active_record_1
43241
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
43242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43243
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43244
+ 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
43245
+  (0.0ms) SAVEPOINT active_record_1
43246
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
43247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43248
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43249
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
43250
+  (0.2ms) rollback transaction
43251
+  (0.0ms) begin transaction
43252
+  (0.0ms) SAVEPOINT active_record_1
43253
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43254
+ SQL (0.4ms) 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]]
43255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43256
+  (0.0ms) SAVEPOINT active_record_1
43257
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43258
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43259
+ 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]]
43260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43261
+  (0.0ms) SAVEPOINT active_record_1
43262
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43263
+ 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]]
43264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43265
+ 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)
43266
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
43267
+ "regions".lft BETWEEN 0.5 AND 1.0
43268
+ )
43269
+  (0.1ms) rollback transaction
43270
+  (0.0ms) begin transaction
43271
+  (0.0ms) SAVEPOINT active_record_1
43272
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43273
+ SQL (0.4ms) 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]]
43274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43275
+  (0.0ms) SAVEPOINT active_record_1
43276
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43277
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43278
+ 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]]
43279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43280
+  (0.1ms) SAVEPOINT active_record_1
43281
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43282
+ 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]]
43283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43284
+  (0.0ms) SAVEPOINT active_record_1
43285
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43286
+ 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]]
43287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43288
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
43289
+  (0.1ms) rollback transaction
43290
+  (0.0ms) begin transaction
43291
+  (0.0ms) SAVEPOINT active_record_1
43292
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43293
+ SQL (0.4ms) 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]]
43294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43295
+  (0.0ms) SAVEPOINT active_record_1
43296
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43297
+ 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]]
43298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43299
+  (0.0ms) SAVEPOINT active_record_1
43300
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43301
+ 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]]
43302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43303
+  (0.1ms) rollback transaction
43304
+  (0.1ms) begin transaction
43305
+  (0.2ms) SAVEPOINT active_record_1
43306
+ SQL (66.4ms) 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]]
43307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43308
+  (0.1ms) SAVEPOINT active_record_1
43309
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43310
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43311
+ 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]]
43312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43313
+  (0.0ms) SAVEPOINT active_record_1
43314
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43315
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43316
+ 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]]
43317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43318
+  (0.0ms) SAVEPOINT active_record_1
43319
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43320
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43321
+ 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]]
43322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43323
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL)
43324
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (NULL OR lftq = 1 AND lftp = 0)
43325
+ 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)
43326
+ 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)
43327
+  (0.2ms) rollback transaction
43328
+  (0.0ms) begin transaction
43329
+  (0.1ms) SAVEPOINT active_record_1
43330
+ SQL (0.5ms) 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]]
43331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43332
+  (0.0ms) SAVEPOINT active_record_1
43333
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
43334
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43335
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43336
+ 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]]
43337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43338
+  (0.1ms) rollback transaction
43339
+  (0.0ms) begin transaction
43340
+  (0.0ms) SAVEPOINT active_record_1
43341
+ SQL (0.4ms) 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]]
43342
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43343
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43344
+ 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]]
43345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43346
+  (0.1ms) rollback transaction
43347
+  (0.0ms) begin transaction
43348
+  (0.0ms) SAVEPOINT active_record_1
43349
+ SQL (0.4ms) 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]]
43350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43351
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
43352
+  (0.1ms) rollback transaction
43353
+  (0.1ms) begin transaction
43354
+  (0.1ms) SAVEPOINT active_record_1
43355
+ 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]]
43356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43357
+  (0.0ms) SAVEPOINT active_record_1
43358
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43359
+ Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43360
+ SQL (0.6ms) 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]]
43361
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43362
+  (13.1ms) SAVEPOINT active_record_1
43363
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43364
+ Region Load (1.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43365
+ SQL (0.3ms) 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]]
43366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43367
+  (0.3ms) SAVEPOINT active_record_1
43368
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43369
+ Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43370
+ SQL (0.3ms) 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]]
43371
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43372
+  (0.5ms) rollback transaction
43373
+  (0.1ms) begin transaction
43374
+  (0.2ms) SAVEPOINT active_record_1
43375
+ SQL (1.6ms) 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]]
43376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43377
+  (0.1ms) SAVEPOINT active_record_1
43378
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43379
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43380
+ 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]]
43381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43382
+  (0.1ms) SAVEPOINT active_record_1
43383
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43384
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43385
+ 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", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
43386
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43387
+  (0.1ms) SAVEPOINT active_record_1
43388
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43389
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43390
+ SQL (0.4ms) 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]]
43391
+  (1.7ms) RELEASE SAVEPOINT active_record_1
43392
+  (0.2ms) rollback transaction
43393
+  (0.0ms) begin transaction
43394
+  (0.0ms) SAVEPOINT active_record_1
43395
+ SQL (0.5ms) 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]]
43396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43397
+  (0.0ms) SAVEPOINT active_record_1
43398
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43399
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43400
+ 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]]
43401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43402
+  (0.0ms) SAVEPOINT active_record_1
43403
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43404
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43405
+ 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]]
43406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43407
+  (0.0ms) SAVEPOINT active_record_1
43408
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43409
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43410
+ 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]]
43411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43412
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
43413
+ "regions".lft BETWEEN 0.0 AND 1.0
43414
+ )
43415
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43416
+ "regions".lft BETWEEN 0.5 AND 1.0
43417
+ )
43418
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
43419
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
43420
+ )
43421
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
43422
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
43423
+ )
43424
+  (0.1ms) rollback transaction
43425
+  (0.0ms) begin transaction
43426
+  (0.0ms) SAVEPOINT active_record_1
43427
+ SQL (0.4ms) 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]]
43428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43429
+  (0.0ms) SAVEPOINT active_record_1
43430
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43431
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43432
+ 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]]
43433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43434
+  (0.0ms) SAVEPOINT active_record_1
43435
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43436
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43437
+ 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]]
43438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43439
+  (0.0ms) SAVEPOINT active_record_1
43440
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43441
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43442
+ 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]]
43443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43444
+  (0.0ms) SAVEPOINT active_record_1
43445
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2
43446
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3
43447
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
43448
+ SQL (0.1ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 3]]
43449
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4
43450
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
43451
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 4]]
43452
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43453
+ SQL (0.0ms) DELETE FROM "regions" WHERE "regions"."id" = ? [["id", 2]]
43454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43455
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
43456
+ "regions".lft BETWEEN 0.0 AND 1.0
43457
+ )
43458
+  (0.1ms) rollback transaction
43459
+  (0.0ms) begin transaction
43460
+  (0.0ms) SAVEPOINT active_record_1
43461
+ SQL (0.4ms) 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]]
43462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43463
+  (0.0ms) SAVEPOINT active_record_1
43464
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43465
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43466
+ 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]]
43467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43468
+  (0.0ms) SAVEPOINT active_record_1
43469
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43470
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43471
+ 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]]
43472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43473
+  (0.0ms) SAVEPOINT active_record_1
43474
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
43475
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
43476
+ 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]]
43477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43478
+  (0.0ms) SAVEPOINT active_record_1
43479
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
43480
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
43481
+ 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]]
43482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43483
+  (0.0ms) SAVEPOINT active_record_1
43484
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
43485
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
43486
+ 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]]
43487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43488
+  (0.0ms) SAVEPOINT active_record_1
43489
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
43490
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
43491
+ 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]]
43492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43493
+  (0.0ms) SAVEPOINT active_record_1
43494
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
43495
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
43496
+ 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]]
43497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43498
+  (0.0ms) SAVEPOINT active_record_1
43499
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
43500
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
43501
+ 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]]
43502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43503
+  (0.0ms) SAVEPOINT active_record_1
43504
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
43505
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
43506
+ 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]]
43507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43508
+  (0.0ms) SAVEPOINT active_record_1
43509
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
43510
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
43511
+ 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]]
43512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43513
+  (0.0ms) SAVEPOINT active_record_1
43514
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
43515
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
43516
+ 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]]
43517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43518
+  (0.0ms) SAVEPOINT active_record_1
43519
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
43520
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
43521
+ 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]]
43522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43523
+  (0.0ms) SAVEPOINT active_record_1
43524
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
43525
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
43526
+ 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]]
43527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43528
+  (0.0ms) SAVEPOINT active_record_1
43529
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
43530
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
43531
+ 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]]
43532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43533
+  (0.0ms) SAVEPOINT active_record_1
43534
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
43535
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
43536
+ 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]]
43537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43538
+  (0.0ms) SAVEPOINT active_record_1
43539
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
43540
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
43541
+ 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]]
43542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43543
+  (0.0ms) SAVEPOINT active_record_1
43544
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
43545
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
43546
+ 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]]
43547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43548
+  (0.0ms) SAVEPOINT active_record_1
43549
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
43550
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
43551
+ 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]]
43552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43553
+  (0.0ms) SAVEPOINT active_record_1
43554
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
43555
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
43556
+ 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]]
43557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43558
+  (0.0ms) SAVEPOINT active_record_1
43559
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
43560
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
43561
+ 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]]
43562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43563
+  (0.0ms) SAVEPOINT active_record_1
43564
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
43565
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
43566
+ 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]]
43567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43568
+  (0.0ms) SAVEPOINT active_record_1
43569
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
43570
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
43571
+ 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]]
43572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43573
+  (0.0ms) SAVEPOINT active_record_1
43574
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
43575
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
43576
+ 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]]
43577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43578
+  (0.0ms) SAVEPOINT active_record_1
43579
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
43580
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
43581
+ 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]]
43582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43583
+  (0.0ms) SAVEPOINT active_record_1
43584
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
43585
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
43586
+ 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]]
43587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43588
+  (0.0ms) SAVEPOINT active_record_1
43589
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
43590
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
43591
+ SQL (0.3ms) 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]]
43592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43593
+  (0.0ms) SAVEPOINT active_record_1
43594
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
43595
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
43596
+ 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]]
43597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43598
+  (0.0ms) SAVEPOINT active_record_1
43599
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
43600
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
43601
+ 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]]
43602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43603
+  (0.1ms) SAVEPOINT active_record_1
43604
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
43605
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
43606
+ 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]]
43607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43608
+  (0.0ms) SAVEPOINT active_record_1
43609
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
43610
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
43611
+ 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]]
43612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43613
+  (0.0ms) SAVEPOINT active_record_1
43614
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
43615
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
43616
+ 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]]
43617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43618
+  (0.0ms) SAVEPOINT active_record_1
43619
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
43620
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
43621
+ 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]]
43622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43623
+  (0.0ms) SAVEPOINT active_record_1
43624
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
43625
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
43626
+ 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]]
43627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43628
+  (0.0ms) SAVEPOINT active_record_1
43629
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
43630
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
43631
+ 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]]
43632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43633
+  (0.0ms) SAVEPOINT active_record_1
43634
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
43635
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
43636
+ 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]]
43637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43638
+  (0.0ms) SAVEPOINT active_record_1
43639
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
43640
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
43641
+ 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]]
43642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43643
+  (0.0ms) SAVEPOINT active_record_1
43644
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
43645
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
43646
+ 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]]
43647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43648
+  (0.1ms) SAVEPOINT active_record_1
43649
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
43650
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
43651
+ 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]]
43652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43653
+  (0.0ms) SAVEPOINT active_record_1
43654
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
43655
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
43656
+ 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]]
43657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43658
+  (0.0ms) SAVEPOINT active_record_1
43659
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
43660
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
43661
+ 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]]
43662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43663
+  (0.0ms) SAVEPOINT active_record_1
43664
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
43665
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
43666
+ 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]]
43667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43668
+  (0.0ms) SAVEPOINT active_record_1
43669
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
43670
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
43671
+ 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]]
43672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43673
+  (0.0ms) SAVEPOINT active_record_1
43674
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
43675
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
43676
+ 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]]
43677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43678
+  (0.0ms) SAVEPOINT active_record_1
43679
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
43680
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
43681
+ 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]]
43682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43683
+  (0.1ms) rollback transaction
43684
+  (0.0ms) begin transaction
43685
+  (0.0ms) rollback transaction
43686
+  (0.0ms) begin transaction
43687
+  (0.0ms) SAVEPOINT active_record_1
43688
+ 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]]
43689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43690
+  (0.0ms) SAVEPOINT active_record_1
43691
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43692
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43693
+ 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]]
43694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43695
+  (0.0ms) SAVEPOINT active_record_1
43696
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43697
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43698
+ 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]]
43699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43700
+  (0.0ms) SAVEPOINT active_record_1
43701
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43702
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43703
+ 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]]
43704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43705
+  (0.0ms) SAVEPOINT active_record_1
43706
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43707
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43708
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
43709
+  (0.0ms) SAVEPOINT active_record_1
43710
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43711
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
43712
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
43713
+  (0.0ms) SAVEPOINT active_record_1
43714
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43715
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43716
+ 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]]
43717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43718
+  (0.0ms) SAVEPOINT active_record_1
43719
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43720
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
43721
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
43722
+ SQL (0.1ms) UPDATE "regions" SET
43723
+ rgtp = 0 * rgtp + 1 * rgtq,
43724
+ rgtq = -1 * rgtp + 3 * rgtq
43725
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43726
+ "regions".lft BETWEEN 0.5 AND 1.0
43727
+ )
43728
+ SQL (9.7ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43729
+ "regions".lft BETWEEN 0.5 AND 1.0
43730
+ )
43731
+ SQL (0.1ms) UPDATE "regions" SET
43732
+ lftp = 0 * lftp + 1 * lftq,
43733
+ lftq = -1 * lftp + 3 * lftq
43734
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43735
+ "regions".lft BETWEEN 0.5 AND 1.0
43736
+ )
43737
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
43738
+ "regions".lft BETWEEN 0.5 AND 1.0
43739
+ )
43740
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
43741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43742
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
43743
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
43744
+  (0.2ms) rollback transaction
43745
+  (0.0ms) begin transaction
43746
+  (0.1ms) SAVEPOINT active_record_1
43747
+ SQL (1.9ms) 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]]
43748
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43749
+  (0.2ms) SAVEPOINT active_record_1
43750
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43751
+ Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43752
+ SQL (0.6ms) 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]]
43753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43754
+  (0.1ms) SAVEPOINT active_record_1
43755
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43756
+ Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43757
+ SQL (0.4ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
43758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43759
+  (0.2ms) SAVEPOINT active_record_1
43760
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43761
+ Region Load (0.8ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43762
+ SQL (0.3ms) 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]]
43763
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43764
+  (0.1ms) SAVEPOINT active_record_1
43765
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
43766
+ Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
43767
+ SQL (0.3ms) 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]]
43768
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43769
+ Region Load (0.6ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
43770
+  (0.5ms) rollback transaction
43771
+  (0.3ms) begin transaction
43772
+  (0.1ms) SAVEPOINT active_record_1
43773
+ Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43774
+ SQL (1.7ms) 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]]
43775
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43776
+  (0.1ms) SAVEPOINT active_record_1
43777
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43778
+ Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43779
+ SQL (0.5ms) 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]]
43780
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43781
+  (0.1ms) SAVEPOINT active_record_1
43782
+ Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43783
+ SQL (0.2ms) 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]]
43784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43785
+  (0.1ms) SAVEPOINT active_record_1
43786
+ Region Load (8.9ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43787
+ SQL (0.2ms) 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]]
43788
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43789
+ SQL (0.3ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
43790
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43791
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
43792
+  (0.1ms) SAVEPOINT active_record_1
43793
+  (0.3ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
43794
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43795
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43796
+ Region Load (4.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
43797
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43798
+ Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
43799
+  (0.0ms) SAVEPOINT active_record_1
43800
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
43801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43802
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43803
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
43804
+  (0.0ms) SAVEPOINT active_record_1
43805
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
43806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43807
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43808
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
43809
+  (0.1ms) SAVEPOINT active_record_1
43810
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
43811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43812
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
43813
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
43814
+  (0.3ms) rollback transaction
43815
+  (0.1ms) begin transaction
43816
+  (0.1ms) SAVEPOINT active_record_1
43817
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43818
+ SQL (0.8ms) 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]]
43819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43820
+  (0.1ms) SAVEPOINT active_record_1
43821
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43822
+ Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43823
+ 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]]
43824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43825
+  (0.0ms) SAVEPOINT active_record_1
43826
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43827
+ 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]]
43828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43829
+ 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)
43830
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
43831
+ "regions".lft BETWEEN 0.5 AND 1.0
43832
+ )
43833
+  (0.1ms) rollback transaction
43834
+  (0.0ms) begin transaction
43835
+  (0.0ms) SAVEPOINT active_record_1
43836
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43837
+ SQL (0.4ms) 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]]
43838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43839
+  (0.0ms) SAVEPOINT active_record_1
43840
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
43841
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
43842
+ 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]]
43843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43844
+  (0.0ms) SAVEPOINT active_record_1
43845
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43846
+ 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]]
43847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43848
+  (0.0ms) SAVEPOINT active_record_1
43849
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43850
+ 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]]
43851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43852
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
43853
+  (0.1ms) rollback transaction
43854
+  (0.0ms) begin transaction
43855
+  (0.0ms) SAVEPOINT active_record_1
43856
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43857
+ SQL (0.4ms) 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]]
43858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43859
+  (0.0ms) SAVEPOINT active_record_1
43860
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43861
+ 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]]
43862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43863
+  (0.0ms) SAVEPOINT active_record_1
43864
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
43865
+ 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]]
43866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43867
+  (0.1ms) rollback transaction