acts_as_nested_interval 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -178,6 +178,10 @@ This might change once the AR identity_map is finished.
178
178
 
179
179
  ## Authors
180
180
 
181
- This: https://github.com/clyfe/acts_as_nested_interval
182
- Original: https://github.com/pythonic/acts_as_nested_interval
183
- Acknowledgement: http://arxiv.org/html/cs.DB/0401014 by Vadim Tropashko.
181
+ Acknowledgement: http://arxiv.org/html/cs.DB/0401014 by Vadim Tropashko.
182
+
183
+ https://github.com/pythonic
184
+ https://github.com/clyfe
185
+ https://github.com/quangquach
186
+ https://github.com/kidlab
187
+ https://github.com/klobuczek
@@ -132,23 +132,26 @@ module ActsAsNestedInterval
132
132
  cpq = db_self.rgtp * lftp - db_self.lftp * rgtp
133
133
  cqp = db_self.lftq * rgtq - db_self.rgtq * lftq
134
134
  cqq = db_self.rgtp * lftq - db_self.lftp * rgtq
135
-
136
- db_descendants = db_self.descendants
137
-
135
+
136
+ updates = {}
137
+ vars = [:lftp, :lftq]
138
+ newval = ->(p, q, side) { "#{p} * #{mysql_tmp}#{side}p + #{q} * #{mysql_tmp}#{side}q" }
139
+
138
140
  if has_attribute?(:rgtp) && has_attribute?(:rgtq)
139
- db_descendants.update_all %(
140
- rgtp = #{cpp} * rgtp + #{cpq} * rgtq,
141
- rgtq = #{cqp} * #{mysql_tmp}rgtp + #{cqq} * rgtq
142
- ), mysql_tmp && %(@rgtp := rgtp)
143
- db_descendants.update_all "rgt = 1.0 * rgtp / rgtq" if has_attribute?(:rgt)
141
+ updates[:rgtp] = newval.(cpp, cpq, :rgt)
142
+ updates[:rgtq] = newval.(cqp, cqq, :rgt)
143
+ vars += [:rgtp, :rgtq]
144
+ updates[:rgt] = "1.0 * (#{updates[:rgtp]}) / (#{updates[:rgtq]})" if has_attribute?(:rgt)
144
145
  end
146
+
147
+ updates[:lftp] = newval.(cpp, cpq, :lft)
148
+ updates[:lftq] = newval.(cqp, cqq, :lft)
149
+ updates[:lft] = "1.0 * (#{updates[:lftp]}) / (#{updates[:lftq]})" if has_attribute?(:lft)
150
+
151
+ sql = updates.map{ |k, v| "#{k} = #{v}"}.join(', ')
152
+ if_vars = mysql_tmp && vars.map { |name| "(@#{name} := #{name})" }.join(' AND ')
145
153
 
146
- db_descendants.update_all %(
147
- lftp = #{cpp} * lftp + #{cpq} * lftq,
148
- lftq = #{cqp} * #{mysql_tmp}lftp + #{cqq} * lftq
149
- ), mysql_tmp && %(@lftp := lftp)
150
-
151
- db_descendants.update_all %(lft = 1.0 * lftp / lftq) if has_attribute?(:lft)
154
+ db_self.descendants.update_all sql, if_vars
152
155
  end
153
156
 
154
157
  def ancestor_of?(node)
@@ -1,3 +1,3 @@
1
1
  module ActsAsNestedInterval
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -136,6 +136,23 @@ class ActsAsNestedIntervalTest < ActiveSupport::TestCase
136
136
  assert_equal 1.0 * 3 / 7, new_zealand.rgt
137
137
  end
138
138
 
139
+ def test_move_from_left_to_right
140
+ earth = Region.create name: 'earth'
141
+ europe = Region.create name: 'europe', parent: earth
142
+ america = Region.create name: 'america', parent: earth
143
+ usa = Region.create name: 'usa', parent: america
144
+ texas = Region.create name: 'texas', parent: usa
145
+ houston = Region.create name: 'houston', parent: texas
146
+ texas.parent = europe # oh noes, natzis gaining ground
147
+ texas.save!
148
+ assert_equal 0, houston.reload.descendants.count
149
+ assert_equal 1, texas.reload.descendants.count
150
+ assert_equal 2, europe.reload.descendants.count
151
+ assert_equal 1, america.reload.descendants.count
152
+ assert_equal 0, usa.reload.descendants.count
153
+ assert_equal 5, earth.reload.descendants.count
154
+ end
155
+
139
156
  def test_destroy
140
157
  earth = Region.create name: "Earth"
141
158
  oceania = Region.create name: "Oceania", parent: earth
@@ -28821,3 +28821,3363 @@ Migrating to CreateRegions (20120302143528)
28821
28821
  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]]
28822
28822
   (0.0ms) RELEASE SAVEPOINT active_record_1
28823
28823
   (0.1ms) rollback transaction
28824
+  (0.1ms) begin transaction
28825
+  (0.1ms) SAVEPOINT active_record_1
28826
+ SQL (18.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]]
28827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28828
+  (0.1ms) SAVEPOINT active_record_1
28829
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28830
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28831
+ 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]]
28832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28833
+  (0.0ms) SAVEPOINT active_record_1
28834
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28835
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28836
+ 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]]
28837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28838
+  (0.0ms) SAVEPOINT active_record_1
28839
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28840
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28841
+ 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]]
28842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28843
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
28844
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
28845
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
28846
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
28847
+  (0.1ms) rollback transaction
28848
+  (0.0ms) begin transaction
28849
+  (0.0ms) SAVEPOINT active_record_1
28850
+ 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]]
28851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28852
+  (0.0ms) SAVEPOINT active_record_1
28853
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
28854
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28855
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28856
+ 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]]
28857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28858
+  (0.1ms) rollback transaction
28859
+  (0.0ms) begin transaction
28860
+  (0.0ms) SAVEPOINT active_record_1
28861
+ 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]]
28862
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28863
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28864
+ 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]]
28865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28866
+  (0.1ms) rollback transaction
28867
+  (0.0ms) begin transaction
28868
+  (0.0ms) SAVEPOINT active_record_1
28869
+ 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]]
28870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28871
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
28872
+  (0.1ms) rollback transaction
28873
+  (0.0ms) begin transaction
28874
+  (0.0ms) SAVEPOINT active_record_1
28875
+ 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]]
28876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28877
+  (0.0ms) SAVEPOINT active_record_1
28878
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28879
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28880
+ 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]]
28881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28882
+  (0.0ms) SAVEPOINT active_record_1
28883
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28884
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28885
+ 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]]
28886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28887
+  (0.0ms) SAVEPOINT active_record_1
28888
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28889
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28890
+ 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]]
28891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28892
+  (0.1ms) rollback transaction
28893
+  (0.0ms) begin transaction
28894
+  (0.0ms) SAVEPOINT active_record_1
28895
+ 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]]
28896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28897
+  (0.0ms) SAVEPOINT active_record_1
28898
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28899
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28900
+ 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]]
28901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28902
+  (0.0ms) SAVEPOINT active_record_1
28903
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28904
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28905
+ 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]]
28906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28907
+  (0.0ms) SAVEPOINT active_record_1
28908
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28909
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28910
+ 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]]
28911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28912
+  (0.1ms) rollback transaction
28913
+  (0.0ms) begin transaction
28914
+  (0.0ms) SAVEPOINT active_record_1
28915
+ 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]]
28916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28917
+  (0.0ms) SAVEPOINT active_record_1
28918
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28919
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28920
+ 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]]
28921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28922
+  (0.0ms) SAVEPOINT active_record_1
28923
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28924
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28925
+ 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]]
28926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28927
+  (0.0ms) SAVEPOINT active_record_1
28928
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28929
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28930
+ 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]]
28931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28932
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
28933
+ "regions".lft BETWEEN 0.0 AND 1.0
28934
+ )
28935
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
28936
+ "regions".lft BETWEEN 0.5 AND 1.0
28937
+ )
28938
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
28939
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
28940
+ )
28941
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
28942
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
28943
+ )
28944
+  (0.1ms) rollback transaction
28945
+  (0.0ms) begin transaction
28946
+  (0.0ms) SAVEPOINT active_record_1
28947
+ 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]]
28948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28949
+  (0.0ms) SAVEPOINT active_record_1
28950
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28951
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28952
+ 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]]
28953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28954
+  (0.0ms) SAVEPOINT active_record_1
28955
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28956
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28957
+ 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]]
28958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28959
+  (0.0ms) SAVEPOINT active_record_1
28960
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
28961
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
28962
+ 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]]
28963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28964
+  (0.0ms) SAVEPOINT active_record_1
28965
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2
28966
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
28967
+  (0.1ms) rollback transaction
28968
+  (0.0ms) begin transaction
28969
+  (0.0ms) SAVEPOINT active_record_1
28970
+ 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]]
28971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28972
+  (0.0ms) SAVEPOINT active_record_1
28973
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28974
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28975
+ 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]]
28976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28977
+  (0.0ms) SAVEPOINT active_record_1
28978
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
28979
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
28980
+ 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]]
28981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28982
+  (0.0ms) SAVEPOINT active_record_1
28983
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
28984
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
28985
+ 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]]
28986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28987
+  (0.0ms) SAVEPOINT active_record_1
28988
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
28989
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
28990
+ 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]]
28991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28992
+  (0.0ms) SAVEPOINT active_record_1
28993
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
28994
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
28995
+ 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]]
28996
+  (0.0ms) RELEASE SAVEPOINT active_record_1
28997
+  (0.0ms) SAVEPOINT active_record_1
28998
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
28999
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
29000
+ 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]]
29001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29002
+  (0.0ms) SAVEPOINT active_record_1
29003
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
29004
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
29005
+ 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]]
29006
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29007
+  (0.0ms) SAVEPOINT active_record_1
29008
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
29009
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
29010
+ 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]]
29011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29012
+  (0.0ms) SAVEPOINT active_record_1
29013
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
29014
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
29015
+ 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]]
29016
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29017
+  (0.0ms) SAVEPOINT active_record_1
29018
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
29019
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
29020
+ 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]]
29021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29022
+  (0.0ms) SAVEPOINT active_record_1
29023
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
29024
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
29025
+ 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]]
29026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29027
+  (0.0ms) SAVEPOINT active_record_1
29028
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
29029
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
29030
+ 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]]
29031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29032
+  (0.0ms) SAVEPOINT active_record_1
29033
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
29034
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
29035
+ 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]]
29036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29037
+  (0.0ms) SAVEPOINT active_record_1
29038
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
29039
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
29040
+ 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]]
29041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29042
+  (0.0ms) SAVEPOINT active_record_1
29043
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
29044
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
29045
+ 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]]
29046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29047
+  (0.0ms) SAVEPOINT active_record_1
29048
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
29049
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
29050
+ 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]]
29051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29052
+  (0.0ms) SAVEPOINT active_record_1
29053
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
29054
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
29055
+ 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]]
29056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29057
+  (0.0ms) SAVEPOINT active_record_1
29058
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
29059
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
29060
+ 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]]
29061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29062
+  (0.0ms) SAVEPOINT active_record_1
29063
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
29064
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
29065
+ 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]]
29066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29067
+  (0.0ms) SAVEPOINT active_record_1
29068
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
29069
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
29070
+ 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]]
29071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29072
+  (0.0ms) SAVEPOINT active_record_1
29073
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
29074
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
29075
+ 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]]
29076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29077
+  (0.0ms) SAVEPOINT active_record_1
29078
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
29079
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
29080
+ 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]]
29081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29082
+  (0.0ms) SAVEPOINT active_record_1
29083
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
29084
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
29085
+ 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]]
29086
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29087
+  (0.0ms) SAVEPOINT active_record_1
29088
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
29089
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
29090
+ 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]]
29091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29092
+  (0.0ms) SAVEPOINT active_record_1
29093
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
29094
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
29095
+ 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]]
29096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29097
+  (0.0ms) SAVEPOINT active_record_1
29098
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
29099
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
29100
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112456775], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 25], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
29101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29102
+  (0.0ms) SAVEPOINT active_record_1
29103
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
29104
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
29105
+ 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]]
29106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29107
+  (0.0ms) SAVEPOINT active_record_1
29108
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
29109
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
29110
+ 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]]
29111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29112
+  (0.0ms) SAVEPOINT active_record_1
29113
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
29114
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
29115
+ 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]]
29116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29117
+  (0.0ms) SAVEPOINT active_record_1
29118
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
29119
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
29120
+ 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]]
29121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29122
+  (0.0ms) SAVEPOINT active_record_1
29123
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
29124
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
29125
+ 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]]
29126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29127
+  (0.0ms) SAVEPOINT active_record_1
29128
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
29129
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
29130
+ 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]]
29131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29132
+  (0.0ms) SAVEPOINT active_record_1
29133
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
29134
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
29135
+ 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]]
29136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29137
+  (0.0ms) SAVEPOINT active_record_1
29138
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
29139
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
29140
+ 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]]
29141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29142
+  (0.0ms) SAVEPOINT active_record_1
29143
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
29144
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
29145
+ 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]]
29146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29147
+  (0.0ms) SAVEPOINT active_record_1
29148
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
29149
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
29150
+ 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]]
29151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29152
+  (0.0ms) SAVEPOINT active_record_1
29153
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
29154
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
29155
+ 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]]
29156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29157
+  (0.0ms) SAVEPOINT active_record_1
29158
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
29159
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
29160
+ 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]]
29161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29162
+  (0.0ms) SAVEPOINT active_record_1
29163
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
29164
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
29165
+ 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]]
29166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29167
+  (0.0ms) SAVEPOINT active_record_1
29168
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
29169
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
29170
+ 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]]
29171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29172
+  (0.0ms) SAVEPOINT active_record_1
29173
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
29174
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
29175
+ 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]]
29176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29177
+  (0.0ms) SAVEPOINT active_record_1
29178
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
29179
+ Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
29180
+ 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]]
29181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29182
+  (0.0ms) SAVEPOINT active_record_1
29183
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
29184
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
29185
+ 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]]
29186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29187
+  (0.0ms) SAVEPOINT active_record_1
29188
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
29189
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
29190
+ 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]]
29191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29192
+  (0.1ms) rollback transaction
29193
+  (0.0ms) begin transaction
29194
+  (0.0ms) rollback transaction
29195
+  (0.0ms) begin transaction
29196
+  (0.0ms) SAVEPOINT active_record_1
29197
+ 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]]
29198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29199
+  (0.0ms) SAVEPOINT active_record_1
29200
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29201
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29202
+ 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]]
29203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29204
+  (0.0ms) SAVEPOINT active_record_1
29205
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29206
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29207
+ 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]]
29208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29209
+  (0.0ms) SAVEPOINT active_record_1
29210
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29211
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29212
+ 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]]
29213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29214
+  (0.0ms) SAVEPOINT active_record_1
29215
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29216
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29217
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
29218
+  (0.0ms) SAVEPOINT active_record_1
29219
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29220
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
29221
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
29222
+  (0.0ms) SAVEPOINT active_record_1
29223
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29224
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29225
+ 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]]
29226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29227
+  (0.0ms) SAVEPOINT active_record_1
29228
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29229
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29230
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
29231
+ SQL (0.1ms) UPDATE "regions" SET
29232
+ rgtp = 0 * rgtp + 1 * rgtq,
29233
+ rgtq = -1 * rgtp + 3 * rgtq
29234
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29235
+ "regions".lft BETWEEN 0.5 AND 1.0
29236
+ )
29237
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29238
+ "regions".lft BETWEEN 0.5 AND 1.0
29239
+ )
29240
+ SQL (0.1ms) UPDATE "regions" SET
29241
+ lftp = 0 * lftp + 1 * lftq,
29242
+ lftq = -1 * lftp + 3 * lftq
29243
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29244
+ "regions".lft BETWEEN 0.5 AND 1.0
29245
+ )
29246
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29247
+ "regions".lft BETWEEN 0.5 AND 1.0
29248
+ )
29249
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
29250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29251
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
29252
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
29253
+  (0.1ms) rollback transaction
29254
+  (0.0ms) begin transaction
29255
+  (0.0ms) SAVEPOINT active_record_1
29256
+ 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]]
29257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29258
+  (0.0ms) SAVEPOINT active_record_1
29259
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29260
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29261
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29263
+  (0.0ms) SAVEPOINT active_record_1
29264
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29265
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29266
+ 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", "america"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
29267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29268
+  (0.0ms) SAVEPOINT active_record_1
29269
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
29270
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
29271
+ 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", "usa"], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
29272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29273
+  (0.0ms) SAVEPOINT active_record_1
29274
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
29275
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1
29276
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.42857142857142855], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 4], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
29277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29278
+  (0.0ms) SAVEPOINT active_record_1
29279
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29280
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
29281
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.4444444444444444], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 5], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
29282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29283
+  (0.0ms) SAVEPOINT active_record_1
29284
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29285
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29286
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29287
+ SQL (0.1ms) UPDATE "regions" SET
29288
+ rgtp = 3 * rgtp + -1 * rgtq,
29289
+ rgtq = 1 * rgtp + 0 * rgtq
29290
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29291
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
29292
+ )
29293
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29294
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
29295
+ )
29296
+ SQL (0.1ms) UPDATE "regions" SET
29297
+ lftp = 3 * lftp + -1 * lftq,
29298
+ lftq = 1 * lftp + 0 * lftq
29299
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29300
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
29301
+ )
29302
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29303
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
29304
+ )
29305
+  (0.1ms) UPDATE "regions" SET "region_id" = 2, "lftp" = 2, "lftq" = 3, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 5
29306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29307
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 6]]
29308
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29309
+ "regions".lft BETWEEN 0.75 AND 1.0
29310
+ )
29311
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29312
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
29313
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
29314
+ )
29315
+  (0.1ms) rollback transaction
29316
+  (0.0ms) begin transaction
29317
+  (0.0ms) SAVEPOINT active_record_1
29318
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29319
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29321
+  (0.0ms) SAVEPOINT active_record_1
29322
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29323
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29324
+ 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]]
29325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29326
+  (0.0ms) SAVEPOINT active_record_1
29327
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29328
+ 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]]
29329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29330
+  (0.0ms) SAVEPOINT active_record_1
29331
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29332
+ 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]]
29333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29334
+  (0.0ms) SAVEPOINT active_record_1
29335
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29336
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29337
+ SQL (0.1ms) UPDATE "regions" SET
29338
+ rgtp = 2 * rgtp + -1 * rgtq,
29339
+ rgtq = 7 * rgtp + -3 * rgtq
29340
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
29341
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
29342
+ )
29343
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
29344
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
29345
+ )
29346
+ SQL (0.1ms) UPDATE "regions" SET
29347
+ lftp = 2 * lftp + -1 * lftq,
29348
+ lftq = 7 * lftp + -3 * lftq
29349
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
29350
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
29351
+ )
29352
+ SQL (0.1ms) UPDATE "regions" SET lft = 1.0 * lftp / lftq WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
29353
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
29354
+ )
29355
+  (0.1ms) UPDATE "regions" SET "region_id" = NULL, "lftp" = 1, "lftq" = 5, "rgtq" = 4, "lft" = 0.2, "rgt" = 0.25 WHERE "regions"."id" = 2
29356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29357
+  (0.1ms) rollback transaction
29358
+  (0.0ms) begin transaction
29359
+  (0.0ms) SAVEPOINT active_record_1
29360
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29361
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29363
+  (0.0ms) SAVEPOINT active_record_1
29364
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29365
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29366
+ 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]]
29367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29368
+  (0.0ms) SAVEPOINT active_record_1
29369
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29370
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29371
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
29372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29373
+  (0.0ms) SAVEPOINT active_record_1
29374
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29375
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29376
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29378
+  (0.0ms) SAVEPOINT active_record_1
29379
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29380
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29381
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.7142857142857143], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.75], ["rgtp", 3], ["rgtq", 4]]
29382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29383
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
29384
+  (0.1ms) rollback transaction
29385
+  (0.0ms) begin transaction
29386
+  (0.0ms) SAVEPOINT active_record_1
29387
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29388
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29390
+  (0.0ms) SAVEPOINT active_record_1
29391
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29392
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29393
+ 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]]
29394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29395
+  (0.0ms) SAVEPOINT active_record_1
29396
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29397
+ 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]]
29398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29399
+  (0.0ms) SAVEPOINT active_record_1
29400
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29401
+ 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]]
29402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29403
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
29404
+ 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
29405
+ 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
29406
+  (0.0ms) SAVEPOINT active_record_1
29407
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
29408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29409
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
29410
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
29411
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29412
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
29413
+  (0.0ms) SAVEPOINT active_record_1
29414
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
29415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29416
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
29417
+ 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
29418
+  (0.0ms) SAVEPOINT active_record_1
29419
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
29420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29421
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
29422
+ 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
29423
+  (0.0ms) SAVEPOINT active_record_1
29424
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
29425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29426
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
29427
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
29428
+  (0.1ms) rollback transaction
29429
+  (0.0ms) begin transaction
29430
+  (0.0ms) SAVEPOINT active_record_1
29431
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29432
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29434
+  (0.0ms) SAVEPOINT active_record_1
29435
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29436
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29437
+ 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]]
29438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29439
+  (0.0ms) SAVEPOINT active_record_1
29440
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29441
+ 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]]
29442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29443
+  (0.0ms) SAVEPOINT active_record_1
29444
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29445
+ 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]]
29446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29447
+  (0.0ms) SAVEPOINT active_record_1
29448
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
29449
+  (0.1ms) UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
29450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29451
+  (0.1ms) rollback transaction
29452
+  (0.0ms) begin transaction
29453
+  (0.0ms) SAVEPOINT active_record_1
29454
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29455
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29457
+  (0.0ms) SAVEPOINT active_record_1
29458
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29459
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29460
+ 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]]
29461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29462
+  (0.0ms) SAVEPOINT active_record_1
29463
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29464
+ 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]]
29465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29466
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
29467
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
29468
+ "regions".lft BETWEEN 0.5 AND 1.0
29469
+ )
29470
+  (0.1ms) rollback transaction
29471
+  (0.0ms) begin transaction
29472
+  (0.0ms) SAVEPOINT active_record_1
29473
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29474
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29476
+  (0.0ms) SAVEPOINT active_record_1
29477
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29478
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29479
+ 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]]
29480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29481
+  (0.0ms) SAVEPOINT active_record_1
29482
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29483
+ 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]]
29484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29485
+  (0.0ms) SAVEPOINT active_record_1
29486
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29487
+ 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]]
29488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29489
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
29490
+  (0.1ms) rollback transaction
29491
+  (0.0ms) begin transaction
29492
+  (0.0ms) SAVEPOINT active_record_1
29493
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29494
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29496
+  (0.0ms) SAVEPOINT active_record_1
29497
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29498
+ 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]]
29499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29500
+  (0.0ms) SAVEPOINT active_record_1
29501
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29502
+ 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]]
29503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29504
+  (0.1ms) rollback transaction
29505
+  (0.1ms) begin transaction
29506
+  (0.1ms) SAVEPOINT active_record_1
29507
+ SQL (2.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]]
29508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29509
+  (0.0ms) SAVEPOINT active_record_1
29510
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29511
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29512
+ 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]]
29513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29514
+  (0.0ms) SAVEPOINT active_record_1
29515
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29516
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29517
+ 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]]
29518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29519
+  (0.0ms) SAVEPOINT active_record_1
29520
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29521
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29522
+ 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]]
29523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29524
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
29525
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
29526
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
29527
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
29528
+  (0.2ms) rollback transaction
29529
+  (0.0ms) begin transaction
29530
+  (0.0ms) SAVEPOINT active_record_1
29531
+ 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]]
29532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29533
+  (0.0ms) SAVEPOINT active_record_1
29534
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
29535
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29536
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29537
+ 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]]
29538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29539
+  (0.1ms) rollback transaction
29540
+  (0.0ms) begin transaction
29541
+  (0.0ms) SAVEPOINT active_record_1
29542
+ 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]]
29543
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29544
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29545
+ 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]]
29546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29547
+  (0.1ms) rollback transaction
29548
+  (0.0ms) begin transaction
29549
+  (0.0ms) SAVEPOINT active_record_1
29550
+ 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]]
29551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29552
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
29553
+  (0.1ms) rollback transaction
29554
+  (0.0ms) begin transaction
29555
+  (0.0ms) SAVEPOINT active_record_1
29556
+ 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]]
29557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29558
+  (0.0ms) SAVEPOINT active_record_1
29559
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29560
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29561
+ 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]]
29562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29563
+  (0.0ms) SAVEPOINT active_record_1
29564
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29565
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29566
+ 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]]
29567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29568
+  (0.0ms) SAVEPOINT active_record_1
29569
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29570
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29571
+ 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]]
29572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29573
+  (0.1ms) rollback transaction
29574
+  (0.0ms) begin transaction
29575
+  (0.0ms) SAVEPOINT active_record_1
29576
+ 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]]
29577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29578
+  (0.0ms) SAVEPOINT active_record_1
29579
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29580
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29581
+ 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]]
29582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29583
+  (0.0ms) SAVEPOINT active_record_1
29584
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29585
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29586
+ 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]]
29587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29588
+  (0.0ms) SAVEPOINT active_record_1
29589
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29590
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29591
+ 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]]
29592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29593
+  (0.1ms) rollback transaction
29594
+  (0.0ms) begin transaction
29595
+  (0.0ms) SAVEPOINT active_record_1
29596
+ 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]]
29597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29598
+  (0.0ms) SAVEPOINT active_record_1
29599
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29600
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29601
+ 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]]
29602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29603
+  (0.0ms) SAVEPOINT active_record_1
29604
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29605
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29606
+ 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]]
29607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29608
+  (0.0ms) SAVEPOINT active_record_1
29609
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29610
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29611
+ 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]]
29612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29613
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
29614
+ "regions".lft BETWEEN 0.0 AND 1.0
29615
+ )
29616
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29617
+ "regions".lft BETWEEN 0.5 AND 1.0
29618
+ )
29619
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
29620
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
29621
+ )
29622
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29623
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
29624
+ )
29625
+  (0.1ms) rollback transaction
29626
+  (0.0ms) begin transaction
29627
+  (0.0ms) SAVEPOINT active_record_1
29628
+ 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]]
29629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29630
+  (0.0ms) SAVEPOINT active_record_1
29631
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29632
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29633
+ 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]]
29634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29635
+  (0.0ms) SAVEPOINT active_record_1
29636
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29637
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29638
+ 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]]
29639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29640
+  (0.0ms) SAVEPOINT active_record_1
29641
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29642
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29643
+ 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]]
29644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29645
+  (0.0ms) SAVEPOINT active_record_1
29646
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2
29647
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
29648
+  (0.1ms) rollback transaction
29649
+  (0.0ms) begin transaction
29650
+  (0.0ms) SAVEPOINT active_record_1
29651
+ 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]]
29652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29653
+  (0.0ms) SAVEPOINT active_record_1
29654
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29655
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29656
+ 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]]
29657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29658
+  (0.0ms) SAVEPOINT active_record_1
29659
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29660
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29661
+ 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]]
29662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29663
+  (0.1ms) SAVEPOINT active_record_1
29664
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
29665
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
29666
+ 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]]
29667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29668
+  (0.0ms) SAVEPOINT active_record_1
29669
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
29670
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
29671
+ 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]]
29672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29673
+  (0.0ms) SAVEPOINT active_record_1
29674
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29675
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
29676
+ 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]]
29677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29678
+  (0.0ms) SAVEPOINT active_record_1
29679
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29680
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
29681
+ 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]]
29682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29683
+  (0.0ms) SAVEPOINT active_record_1
29684
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
29685
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
29686
+ 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]]
29687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29688
+  (0.0ms) SAVEPOINT active_record_1
29689
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
29690
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
29691
+ 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]]
29692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29693
+  (0.0ms) SAVEPOINT active_record_1
29694
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
29695
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
29696
+ 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]]
29697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29698
+  (0.0ms) SAVEPOINT active_record_1
29699
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
29700
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
29701
+ 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]]
29702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29703
+  (0.0ms) SAVEPOINT active_record_1
29704
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
29705
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
29706
+ 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]]
29707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29708
+  (0.0ms) SAVEPOINT active_record_1
29709
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
29710
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
29711
+ 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]]
29712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29713
+  (0.0ms) SAVEPOINT active_record_1
29714
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
29715
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
29716
+ 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]]
29717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29718
+  (0.0ms) SAVEPOINT active_record_1
29719
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
29720
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
29721
+ 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]]
29722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29723
+  (0.0ms) SAVEPOINT active_record_1
29724
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
29725
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
29726
+ 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]]
29727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29728
+  (0.0ms) SAVEPOINT active_record_1
29729
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
29730
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
29731
+ 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]]
29732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29733
+  (0.0ms) SAVEPOINT active_record_1
29734
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
29735
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
29736
+ 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]]
29737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29738
+  (0.0ms) SAVEPOINT active_record_1
29739
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
29740
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
29741
+ 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]]
29742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29743
+  (0.0ms) SAVEPOINT active_record_1
29744
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
29745
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
29746
+ 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]]
29747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29748
+  (0.0ms) SAVEPOINT active_record_1
29749
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
29750
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
29751
+ 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]]
29752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29753
+  (0.0ms) SAVEPOINT active_record_1
29754
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
29755
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
29756
+ 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]]
29757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29758
+  (0.0ms) SAVEPOINT active_record_1
29759
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
29760
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
29761
+ 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]]
29762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29763
+  (0.0ms) SAVEPOINT active_record_1
29764
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
29765
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
29766
+ 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]]
29767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29768
+  (0.0ms) SAVEPOINT active_record_1
29769
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
29770
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
29771
+ 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]]
29772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29773
+  (0.0ms) SAVEPOINT active_record_1
29774
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
29775
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
29776
+ 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]]
29777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29778
+  (0.0ms) SAVEPOINT active_record_1
29779
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
29780
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
29781
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112456775], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 25], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
29782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29783
+  (0.0ms) SAVEPOINT active_record_1
29784
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
29785
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
29786
+ 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]]
29787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29788
+  (0.0ms) SAVEPOINT active_record_1
29789
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
29790
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
29791
+ 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]]
29792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29793
+  (0.0ms) SAVEPOINT active_record_1
29794
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
29795
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
29796
+ 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]]
29797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29798
+  (0.0ms) SAVEPOINT active_record_1
29799
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
29800
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
29801
+ 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]]
29802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29803
+  (0.0ms) SAVEPOINT active_record_1
29804
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
29805
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
29806
+ 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]]
29807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29808
+  (0.0ms) SAVEPOINT active_record_1
29809
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
29810
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
29811
+ 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]]
29812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29813
+  (0.0ms) SAVEPOINT active_record_1
29814
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
29815
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
29816
+ 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]]
29817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29818
+  (0.0ms) SAVEPOINT active_record_1
29819
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
29820
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
29821
+ 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]]
29822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29823
+  (0.0ms) SAVEPOINT active_record_1
29824
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
29825
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
29826
+ 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]]
29827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29828
+  (0.0ms) SAVEPOINT active_record_1
29829
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
29830
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
29831
+ 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]]
29832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29833
+  (0.0ms) SAVEPOINT active_record_1
29834
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
29835
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
29836
+ 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]]
29837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29838
+  (0.0ms) SAVEPOINT active_record_1
29839
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
29840
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
29841
+ 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]]
29842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29843
+  (0.0ms) SAVEPOINT active_record_1
29844
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
29845
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
29846
+ 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]]
29847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29848
+  (0.0ms) SAVEPOINT active_record_1
29849
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
29850
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
29851
+ 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]]
29852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29853
+  (0.0ms) SAVEPOINT active_record_1
29854
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
29855
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
29856
+ 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]]
29857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29858
+  (0.0ms) SAVEPOINT active_record_1
29859
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
29860
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
29861
+ 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]]
29862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29863
+  (0.0ms) SAVEPOINT active_record_1
29864
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
29865
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
29866
+ 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]]
29867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29868
+  (0.0ms) SAVEPOINT active_record_1
29869
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
29870
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
29871
+ 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]]
29872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29873
+  (0.1ms) rollback transaction
29874
+  (0.0ms) begin transaction
29875
+  (0.0ms) rollback transaction
29876
+  (0.0ms) begin transaction
29877
+  (0.0ms) SAVEPOINT active_record_1
29878
+ 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]]
29879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29880
+  (0.0ms) SAVEPOINT active_record_1
29881
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29882
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29883
+ 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]]
29884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29885
+  (0.0ms) SAVEPOINT active_record_1
29886
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29887
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29888
+ 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]]
29889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29890
+  (0.1ms) SAVEPOINT active_record_1
29891
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29892
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29893
+ 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]]
29894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29895
+  (0.1ms) SAVEPOINT active_record_1
29896
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29897
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29898
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
29899
+  (0.0ms) SAVEPOINT active_record_1
29900
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29901
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
29902
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
29903
+  (0.0ms) SAVEPOINT active_record_1
29904
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29905
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29906
+ 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]]
29907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29908
+  (0.0ms) SAVEPOINT active_record_1
29909
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29910
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29911
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
29912
+ SQL (0.1ms) UPDATE "regions" SET
29913
+ rgtp = 0 * rgtp + 1 * rgtq,
29914
+ rgtq = -1 * rgtp + 3 * rgtq
29915
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29916
+ "regions".lft BETWEEN 0.5 AND 1.0
29917
+ )
29918
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29919
+ "regions".lft BETWEEN 0.5 AND 1.0
29920
+ )
29921
+ SQL (0.1ms) UPDATE "regions" SET
29922
+ lftp = 0 * lftp + 1 * lftq,
29923
+ lftq = -1 * lftp + 3 * lftq
29924
+ lft = 1.0 * lftp / lftq
29925
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29926
+ "regions".lft BETWEEN 0.5 AND 1.0
29927
+ )
29928
+ SQLite3::SQLException: near "lft": syntax error: UPDATE "regions" SET
29929
+ lftp = 0 * lftp + 1 * lftq,
29930
+ lftq = -1 * lftp + 3 * lftq
29931
+ lft = 1.0 * lftp / lftq
29932
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
29933
+ "regions".lft BETWEEN 0.5 AND 1.0
29934
+ )
29935
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
29936
+  (0.1ms) rollback transaction
29937
+  (0.0ms) begin transaction
29938
+  (0.0ms) SAVEPOINT active_record_1
29939
+ 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]]
29940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29941
+  (0.0ms) SAVEPOINT active_record_1
29942
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29943
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29944
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29946
+  (0.0ms) SAVEPOINT active_record_1
29947
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
29948
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
29949
+ 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", "america"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
29950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29951
+  (0.0ms) SAVEPOINT active_record_1
29952
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
29953
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
29954
+ 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", "usa"], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
29955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29956
+  (0.0ms) SAVEPOINT active_record_1
29957
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
29958
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1
29959
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.42857142857142855], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 4], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
29960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29961
+  (0.0ms) SAVEPOINT active_record_1
29962
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29963
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
29964
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.4444444444444444], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 5], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
29965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29966
+  (0.0ms) SAVEPOINT active_record_1
29967
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
29968
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
29969
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
29970
+ SQL (0.1ms) UPDATE "regions" SET
29971
+ rgtp = 3 * rgtp + -1 * rgtq,
29972
+ rgtq = 1 * rgtp + 0 * rgtq
29973
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29974
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
29975
+ )
29976
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29977
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
29978
+ )
29979
+ SQL (0.1ms) UPDATE "regions" SET
29980
+ lftp = 3 * lftp + -1 * lftq,
29981
+ lftq = 1 * lftp + 0 * lftq
29982
+ lft = 1.0 * lftp / lftq
29983
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29984
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
29985
+ )
29986
+ SQLite3::SQLException: near "lft": syntax error: UPDATE "regions" SET
29987
+ lftp = 3 * lftp + -1 * lftq,
29988
+ lftq = 1 * lftp + 0 * lftq
29989
+ lft = 1.0 * lftp / lftq
29990
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
29991
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
29992
+ )
29993
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
29994
+  (0.1ms) rollback transaction
29995
+  (0.0ms) begin transaction
29996
+  (0.0ms) SAVEPOINT active_record_1
29997
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
29998
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
29999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30000
+  (0.0ms) SAVEPOINT active_record_1
30001
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30002
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30003
+ 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]]
30004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30005
+  (0.0ms) SAVEPOINT active_record_1
30006
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30007
+ 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]]
30008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30009
+  (0.0ms) SAVEPOINT active_record_1
30010
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30011
+ 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]]
30012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30013
+  (0.0ms) SAVEPOINT active_record_1
30014
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30015
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30016
+ SQL (0.1ms) UPDATE "regions" SET
30017
+ rgtp = 2 * rgtp + -1 * rgtq,
30018
+ rgtq = 7 * rgtp + -3 * rgtq
30019
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30020
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30021
+ )
30022
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30023
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30024
+ )
30025
+ SQL (0.1ms) UPDATE "regions" SET
30026
+ lftp = 2 * lftp + -1 * lftq,
30027
+ lftq = 7 * lftp + -3 * lftq
30028
+ lft = 1.0 * lftp / lftq
30029
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30030
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30031
+ )
30032
+ SQLite3::SQLException: near "lft": syntax error: UPDATE "regions" SET
30033
+ lftp = 2 * lftp + -1 * lftq,
30034
+ lftq = 7 * lftp + -3 * lftq
30035
+ lft = 1.0 * lftp / lftq
30036
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30037
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30038
+ )
30039
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
30040
+  (0.1ms) rollback transaction
30041
+  (0.0ms) begin transaction
30042
+  (0.0ms) SAVEPOINT active_record_1
30043
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30044
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30046
+  (0.0ms) SAVEPOINT active_record_1
30047
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30048
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30049
+ 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]]
30050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30051
+  (0.0ms) SAVEPOINT active_record_1
30052
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30053
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30054
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
30055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30056
+  (0.0ms) SAVEPOINT active_record_1
30057
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30058
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30059
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30061
+  (0.0ms) SAVEPOINT active_record_1
30062
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30063
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30064
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.7142857142857143], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.75], ["rgtp", 3], ["rgtq", 4]]
30065
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30066
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
30067
+  (0.1ms) rollback transaction
30068
+  (0.0ms) begin transaction
30069
+  (0.0ms) SAVEPOINT active_record_1
30070
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30071
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30073
+  (0.0ms) SAVEPOINT active_record_1
30074
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30075
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30076
+ 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]]
30077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30078
+  (0.0ms) SAVEPOINT active_record_1
30079
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30080
+ 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]]
30081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30082
+  (0.0ms) SAVEPOINT active_record_1
30083
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30084
+ 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]]
30085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30086
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
30087
+ 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
30088
+ 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
30089
+  (0.0ms) SAVEPOINT active_record_1
30090
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
30091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30092
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
30093
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
30094
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30095
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
30096
+  (0.0ms) SAVEPOINT active_record_1
30097
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
30098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30099
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
30100
+ 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
30101
+  (0.0ms) SAVEPOINT active_record_1
30102
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
30103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30104
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
30105
+ 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
30106
+  (0.0ms) SAVEPOINT active_record_1
30107
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
30108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30109
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
30110
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
30111
+  (0.1ms) rollback transaction
30112
+  (0.0ms) begin transaction
30113
+  (0.0ms) SAVEPOINT active_record_1
30114
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30115
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30117
+  (0.0ms) SAVEPOINT active_record_1
30118
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30119
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30120
+ 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]]
30121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30122
+  (0.0ms) SAVEPOINT active_record_1
30123
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30124
+ 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]]
30125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30126
+  (0.0ms) SAVEPOINT active_record_1
30127
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30128
+ 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]]
30129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30130
+  (0.0ms) SAVEPOINT active_record_1
30131
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
30132
+  (0.1ms) UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
30133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30134
+  (0.1ms) rollback transaction
30135
+  (0.0ms) begin transaction
30136
+  (0.0ms) SAVEPOINT active_record_1
30137
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30138
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30140
+  (0.0ms) SAVEPOINT active_record_1
30141
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30142
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30143
+ 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]]
30144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30145
+  (0.0ms) SAVEPOINT active_record_1
30146
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30147
+ 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]]
30148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30149
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
30150
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
30151
+ "regions".lft BETWEEN 0.5 AND 1.0
30152
+ )
30153
+  (0.1ms) rollback transaction
30154
+  (0.0ms) begin transaction
30155
+  (0.0ms) SAVEPOINT active_record_1
30156
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30157
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30159
+  (0.0ms) SAVEPOINT active_record_1
30160
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30161
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30162
+ 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]]
30163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30164
+  (0.0ms) SAVEPOINT active_record_1
30165
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30166
+ 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]]
30167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30168
+  (0.0ms) SAVEPOINT active_record_1
30169
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30170
+ 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]]
30171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30172
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
30173
+  (0.1ms) rollback transaction
30174
+  (0.0ms) begin transaction
30175
+  (0.0ms) SAVEPOINT active_record_1
30176
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30177
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30179
+  (0.0ms) SAVEPOINT active_record_1
30180
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30181
+ 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]]
30182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30183
+  (0.0ms) SAVEPOINT active_record_1
30184
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30185
+ 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]]
30186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30187
+  (0.1ms) rollback transaction
30188
+  (0.1ms) begin transaction
30189
+  (0.0ms) SAVEPOINT active_record_1
30190
+ SQL (2.8ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30192
+  (0.1ms) SAVEPOINT active_record_1
30193
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30194
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30195
+ 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]]
30196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30197
+  (0.0ms) SAVEPOINT active_record_1
30198
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30199
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30200
+ 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]]
30201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30202
+  (0.0ms) SAVEPOINT active_record_1
30203
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30204
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30205
+ 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]]
30206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30207
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
30208
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
30209
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
30210
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
30211
+  (0.1ms) rollback transaction
30212
+  (0.0ms) begin transaction
30213
+  (0.0ms) SAVEPOINT active_record_1
30214
+ 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]]
30215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30216
+  (0.0ms) SAVEPOINT active_record_1
30217
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
30218
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30219
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30220
+ 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]]
30221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30222
+  (0.1ms) rollback transaction
30223
+  (0.0ms) begin transaction
30224
+  (0.0ms) SAVEPOINT active_record_1
30225
+ 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]]
30226
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30227
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30228
+ 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]]
30229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30230
+  (0.1ms) rollback transaction
30231
+  (0.0ms) begin transaction
30232
+  (0.0ms) SAVEPOINT active_record_1
30233
+ 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]]
30234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30235
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
30236
+  (0.1ms) rollback transaction
30237
+  (0.0ms) begin transaction
30238
+  (0.0ms) SAVEPOINT active_record_1
30239
+ 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]]
30240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30241
+  (0.0ms) SAVEPOINT active_record_1
30242
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30243
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30244
+ 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]]
30245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30246
+  (0.0ms) SAVEPOINT active_record_1
30247
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30248
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30249
+ 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]]
30250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30251
+  (0.0ms) SAVEPOINT active_record_1
30252
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30253
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30254
+ 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]]
30255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30256
+  (0.1ms) rollback transaction
30257
+  (0.0ms) begin transaction
30258
+  (0.0ms) SAVEPOINT active_record_1
30259
+ 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]]
30260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30261
+  (0.0ms) SAVEPOINT active_record_1
30262
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30263
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30264
+ 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]]
30265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30266
+  (0.0ms) SAVEPOINT active_record_1
30267
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30268
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30269
+ 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]]
30270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30271
+  (0.0ms) SAVEPOINT active_record_1
30272
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30273
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30274
+ 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]]
30275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30276
+  (0.1ms) rollback transaction
30277
+  (0.0ms) begin transaction
30278
+  (0.0ms) SAVEPOINT active_record_1
30279
+ 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]]
30280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30281
+  (0.0ms) SAVEPOINT active_record_1
30282
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30283
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30284
+ 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]]
30285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30286
+  (0.0ms) SAVEPOINT active_record_1
30287
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30288
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30289
+ 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]]
30290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30291
+  (0.0ms) SAVEPOINT active_record_1
30292
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30293
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30294
+ 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]]
30295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30296
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
30297
+ "regions".lft BETWEEN 0.0 AND 1.0
30298
+ )
30299
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
30300
+ "regions".lft BETWEEN 0.5 AND 1.0
30301
+ )
30302
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30303
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30304
+ )
30305
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
30306
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
30307
+ )
30308
+  (0.1ms) rollback transaction
30309
+  (0.0ms) begin transaction
30310
+  (0.0ms) SAVEPOINT active_record_1
30311
+ 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]]
30312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30313
+  (0.0ms) SAVEPOINT active_record_1
30314
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30315
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30316
+ 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]]
30317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30318
+  (0.0ms) SAVEPOINT active_record_1
30319
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30320
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30321
+ 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]]
30322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30323
+  (0.0ms) SAVEPOINT active_record_1
30324
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30325
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30326
+ 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]]
30327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30328
+  (0.0ms) SAVEPOINT active_record_1
30329
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2
30330
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
30331
+  (0.1ms) rollback transaction
30332
+  (0.0ms) begin transaction
30333
+  (0.0ms) SAVEPOINT active_record_1
30334
+ 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]]
30335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30336
+  (0.0ms) SAVEPOINT active_record_1
30337
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30338
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30339
+ 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]]
30340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30341
+  (0.0ms) SAVEPOINT active_record_1
30342
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30343
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30344
+ 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]]
30345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30346
+  (0.0ms) SAVEPOINT active_record_1
30347
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
30348
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
30349
+ 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]]
30350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30351
+  (0.0ms) SAVEPOINT active_record_1
30352
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
30353
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
30354
+ 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]]
30355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30356
+  (0.0ms) SAVEPOINT active_record_1
30357
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
30358
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
30359
+ 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]]
30360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30361
+  (0.0ms) SAVEPOINT active_record_1
30362
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
30363
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
30364
+ 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]]
30365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30366
+  (0.0ms) SAVEPOINT active_record_1
30367
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
30368
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
30369
+ 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]]
30370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30371
+  (0.0ms) SAVEPOINT active_record_1
30372
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
30373
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
30374
+ 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]]
30375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30376
+  (0.0ms) SAVEPOINT active_record_1
30377
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
30378
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
30379
+ 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]]
30380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30381
+  (0.0ms) SAVEPOINT active_record_1
30382
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
30383
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
30384
+ 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]]
30385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30386
+  (0.0ms) SAVEPOINT active_record_1
30387
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
30388
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
30389
+ 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]]
30390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30391
+  (0.0ms) SAVEPOINT active_record_1
30392
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
30393
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
30394
+ 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]]
30395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30396
+  (0.0ms) SAVEPOINT active_record_1
30397
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
30398
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
30399
+ 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]]
30400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30401
+  (0.0ms) SAVEPOINT active_record_1
30402
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
30403
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
30404
+ 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]]
30405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30406
+  (0.0ms) SAVEPOINT active_record_1
30407
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
30408
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
30409
+ 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]]
30410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30411
+  (0.0ms) SAVEPOINT active_record_1
30412
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
30413
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
30414
+ 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]]
30415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30416
+  (0.0ms) SAVEPOINT active_record_1
30417
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
30418
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
30419
+ 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]]
30420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30421
+  (0.0ms) SAVEPOINT active_record_1
30422
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
30423
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
30424
+ 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]]
30425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30426
+  (0.0ms) SAVEPOINT active_record_1
30427
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
30428
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
30429
+ 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]]
30430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30431
+  (0.0ms) SAVEPOINT active_record_1
30432
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
30433
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
30434
+ 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]]
30435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30436
+  (0.0ms) SAVEPOINT active_record_1
30437
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
30438
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
30439
+ 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]]
30440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30441
+  (0.0ms) SAVEPOINT active_record_1
30442
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
30443
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
30444
+ 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]]
30445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30446
+  (0.0ms) SAVEPOINT active_record_1
30447
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
30448
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
30449
+ 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]]
30450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30451
+  (0.0ms) SAVEPOINT active_record_1
30452
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
30453
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
30454
+ 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]]
30455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30456
+  (0.0ms) SAVEPOINT active_record_1
30457
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
30458
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
30459
+ 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]]
30460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30461
+  (0.0ms) SAVEPOINT active_record_1
30462
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
30463
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
30464
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112456775], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 25], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
30465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30466
+  (0.0ms) SAVEPOINT active_record_1
30467
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
30468
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
30469
+ 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]]
30470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30471
+  (0.0ms) SAVEPOINT active_record_1
30472
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
30473
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
30474
+ 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]]
30475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30476
+  (0.0ms) SAVEPOINT active_record_1
30477
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
30478
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
30479
+ 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]]
30480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30481
+  (0.0ms) SAVEPOINT active_record_1
30482
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
30483
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
30484
+ 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]]
30485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30486
+  (0.0ms) SAVEPOINT active_record_1
30487
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
30488
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
30489
+ 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]]
30490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30491
+  (0.0ms) SAVEPOINT active_record_1
30492
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
30493
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
30494
+ 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]]
30495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30496
+  (0.0ms) SAVEPOINT active_record_1
30497
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
30498
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
30499
+ 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]]
30500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30501
+  (0.0ms) SAVEPOINT active_record_1
30502
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
30503
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
30504
+ 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]]
30505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30506
+  (0.0ms) SAVEPOINT active_record_1
30507
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
30508
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
30509
+ 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]]
30510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30511
+  (0.0ms) SAVEPOINT active_record_1
30512
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
30513
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
30514
+ 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]]
30515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30516
+  (0.0ms) SAVEPOINT active_record_1
30517
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
30518
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
30519
+ 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]]
30520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30521
+  (0.0ms) SAVEPOINT active_record_1
30522
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
30523
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
30524
+ 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]]
30525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30526
+  (0.0ms) SAVEPOINT active_record_1
30527
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
30528
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
30529
+ 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]]
30530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30531
+  (0.0ms) SAVEPOINT active_record_1
30532
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
30533
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
30534
+ 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]]
30535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30536
+  (0.0ms) SAVEPOINT active_record_1
30537
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
30538
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
30539
+ 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]]
30540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30541
+  (0.0ms) SAVEPOINT active_record_1
30542
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
30543
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
30544
+ 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]]
30545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30546
+  (0.0ms) SAVEPOINT active_record_1
30547
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
30548
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
30549
+ 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]]
30550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30551
+  (0.0ms) SAVEPOINT active_record_1
30552
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
30553
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
30554
+ 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]]
30555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30556
+  (0.1ms) rollback transaction
30557
+  (0.0ms) begin transaction
30558
+  (0.0ms) rollback transaction
30559
+  (0.0ms) begin transaction
30560
+  (0.0ms) SAVEPOINT active_record_1
30561
+ 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]]
30562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30563
+  (0.0ms) SAVEPOINT active_record_1
30564
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30565
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30566
+ 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]]
30567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30568
+  (0.0ms) SAVEPOINT active_record_1
30569
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30570
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30571
+ 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]]
30572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30573
+  (0.0ms) SAVEPOINT active_record_1
30574
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30575
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30576
+ 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]]
30577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30578
+  (0.0ms) SAVEPOINT active_record_1
30579
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30580
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30581
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
30582
+  (0.0ms) SAVEPOINT active_record_1
30583
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30584
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
30585
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
30586
+  (0.0ms) SAVEPOINT active_record_1
30587
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30588
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30589
+ 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]]
30590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30591
+  (0.0ms) SAVEPOINT active_record_1
30592
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30593
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
30594
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
30595
+ SQL (0.1ms) UPDATE "regions" SET
30596
+ rgtp = 0 * rgtp + 1 * rgtq,
30597
+ rgtq = -1 * rgtp + 3 * rgtq
30598
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
30599
+ "regions".lft BETWEEN 0.5 AND 1.0
30600
+ )
30601
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
30602
+ "regions".lft BETWEEN 0.5 AND 1.0
30603
+ )
30604
+ SQL (0.1ms) UPDATE "regions" SET
30605
+ lftp = 0 * lftp + 1 * lftq,
30606
+ lftq = -1 * lftp + 3 * lftq
30607
+ , lft = 1.0 * lftp / lftq
30608
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
30609
+ "regions".lft BETWEEN 0.5 AND 1.0
30610
+ )
30611
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
30612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30613
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
30614
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
30615
+  (0.1ms) rollback transaction
30616
+  (0.0ms) begin transaction
30617
+  (0.0ms) SAVEPOINT active_record_1
30618
+ 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]]
30619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30620
+  (0.0ms) SAVEPOINT active_record_1
30621
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30622
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30623
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30625
+  (0.0ms) SAVEPOINT active_record_1
30626
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30627
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30628
+ 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", "america"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
30629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30630
+  (0.0ms) SAVEPOINT active_record_1
30631
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
30632
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
30633
+ 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", "usa"], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
30634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30635
+  (0.0ms) SAVEPOINT active_record_1
30636
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
30637
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1
30638
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.42857142857142855], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 4], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
30639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30640
+  (0.0ms) SAVEPOINT active_record_1
30641
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
30642
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
30643
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.4444444444444444], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 5], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
30644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30645
+  (0.0ms) SAVEPOINT active_record_1
30646
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
30647
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30648
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30649
+ SQL (0.1ms) UPDATE "regions" SET
30650
+ rgtp = 3 * rgtp + -1 * rgtq,
30651
+ rgtq = 1 * rgtp + 0 * rgtq
30652
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
30653
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
30654
+ )
30655
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
30656
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
30657
+ )
30658
+ SQL (0.1ms) UPDATE "regions" SET
30659
+ lftp = 3 * lftp + -1 * lftq,
30660
+ lftq = 1 * lftp + 0 * lftq
30661
+ , lft = 1.0 * lftp / lftq
30662
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
30663
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
30664
+ )
30665
+  (0.1ms) UPDATE "regions" SET "region_id" = 2, "lftp" = 2, "lftq" = 3, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 5
30666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30667
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 6]]
30668
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
30669
+ "regions".lft BETWEEN 0.75 AND 1.0
30670
+ )
30671
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
30672
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30673
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30674
+ )
30675
+  (0.1ms) rollback transaction
30676
+  (0.0ms) begin transaction
30677
+  (0.0ms) SAVEPOINT active_record_1
30678
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30679
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30681
+  (0.0ms) SAVEPOINT active_record_1
30682
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30683
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30684
+ 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]]
30685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30686
+  (0.0ms) SAVEPOINT active_record_1
30687
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30688
+ 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]]
30689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30690
+  (0.0ms) SAVEPOINT active_record_1
30691
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30692
+ 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]]
30693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30694
+  (0.0ms) SAVEPOINT active_record_1
30695
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30696
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30697
+ SQL (0.1ms) UPDATE "regions" SET
30698
+ rgtp = 2 * rgtp + -1 * rgtq,
30699
+ rgtq = 7 * rgtp + -3 * rgtq
30700
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30701
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30702
+ )
30703
+ SQL (0.1ms) UPDATE "regions" SET rgt = 1.0 * rgtp / rgtq WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30704
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30705
+ )
30706
+ SQL (0.1ms) UPDATE "regions" SET
30707
+ lftp = 2 * lftp + -1 * lftq,
30708
+ lftq = 7 * lftp + -3 * lftq
30709
+ , lft = 1.0 * lftp / lftq
30710
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30711
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30712
+ )
30713
+  (0.1ms) UPDATE "regions" SET "region_id" = NULL, "lftp" = 1, "lftq" = 5, "rgtq" = 4, "lft" = 0.2, "rgt" = 0.25 WHERE "regions"."id" = 2
30714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30715
+  (0.1ms) rollback transaction
30716
+  (0.0ms) begin transaction
30717
+  (0.0ms) SAVEPOINT active_record_1
30718
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30719
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30721
+  (0.0ms) SAVEPOINT active_record_1
30722
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30723
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30724
+ 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]]
30725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30726
+  (0.0ms) SAVEPOINT active_record_1
30727
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30728
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30729
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
30730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30731
+  (0.0ms) SAVEPOINT active_record_1
30732
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30733
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30734
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30736
+  (0.0ms) SAVEPOINT active_record_1
30737
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30738
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30739
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.7142857142857143], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.75], ["rgtp", 3], ["rgtq", 4]]
30740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30741
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
30742
+  (0.1ms) rollback transaction
30743
+  (0.0ms) begin transaction
30744
+  (0.0ms) SAVEPOINT active_record_1
30745
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30746
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30748
+  (0.0ms) SAVEPOINT active_record_1
30749
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30750
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30751
+ 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]]
30752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30753
+  (0.0ms) SAVEPOINT active_record_1
30754
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30755
+ 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]]
30756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30757
+  (0.0ms) SAVEPOINT active_record_1
30758
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30759
+ 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]]
30760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30761
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
30762
+ 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
30763
+ 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
30764
+  (0.0ms) SAVEPOINT active_record_1
30765
+  (0.2ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
30766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30767
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
30768
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
30769
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30770
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
30771
+  (0.0ms) SAVEPOINT active_record_1
30772
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
30773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30774
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
30775
+ 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
30776
+  (0.0ms) SAVEPOINT active_record_1
30777
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
30778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30779
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
30780
+ 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
30781
+  (0.0ms) SAVEPOINT active_record_1
30782
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
30783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30784
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
30785
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
30786
+  (0.1ms) rollback transaction
30787
+  (0.0ms) begin transaction
30788
+  (0.0ms) SAVEPOINT active_record_1
30789
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30790
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30792
+  (0.0ms) SAVEPOINT active_record_1
30793
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30794
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30795
+ 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]]
30796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30797
+  (0.0ms) SAVEPOINT active_record_1
30798
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30799
+ 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]]
30800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30801
+  (0.0ms) SAVEPOINT active_record_1
30802
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30803
+ 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]]
30804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30805
+  (0.0ms) SAVEPOINT active_record_1
30806
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
30807
+  (0.1ms) UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
30808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30809
+  (0.1ms) rollback transaction
30810
+  (0.0ms) begin transaction
30811
+  (0.0ms) SAVEPOINT active_record_1
30812
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30813
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30814
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30815
+  (0.0ms) SAVEPOINT active_record_1
30816
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30817
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30818
+ 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]]
30819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30820
+  (0.0ms) SAVEPOINT active_record_1
30821
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30822
+ 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]]
30823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30824
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
30825
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
30826
+ "regions".lft BETWEEN 0.5 AND 1.0
30827
+ )
30828
+  (0.1ms) rollback transaction
30829
+  (0.0ms) begin transaction
30830
+  (0.0ms) SAVEPOINT active_record_1
30831
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30832
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30834
+  (0.0ms) SAVEPOINT active_record_1
30835
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30836
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30837
+ 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]]
30838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30839
+  (0.0ms) SAVEPOINT active_record_1
30840
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30841
+ 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]]
30842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30843
+  (0.0ms) SAVEPOINT active_record_1
30844
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30845
+ 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]]
30846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30847
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
30848
+  (0.1ms) rollback transaction
30849
+  (0.0ms) begin transaction
30850
+  (0.0ms) SAVEPOINT active_record_1
30851
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30852
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
30853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30854
+  (0.0ms) SAVEPOINT active_record_1
30855
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30856
+ 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]]
30857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30858
+  (0.0ms) SAVEPOINT active_record_1
30859
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
30860
+ 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]]
30861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30862
+  (0.1ms) rollback transaction
30863
+  (0.1ms) begin transaction
30864
+  (0.1ms) SAVEPOINT active_record_1
30865
+ SQL (5.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]]
30866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30867
+  (0.1ms) SAVEPOINT active_record_1
30868
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30869
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30870
+ 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]]
30871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30872
+  (0.0ms) SAVEPOINT active_record_1
30873
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30874
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30875
+ 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]]
30876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30877
+  (0.0ms) SAVEPOINT active_record_1
30878
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30879
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30880
+ 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]]
30881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30882
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
30883
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
30884
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
30885
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
30886
+  (0.1ms) rollback transaction
30887
+  (0.0ms) begin transaction
30888
+  (0.0ms) SAVEPOINT active_record_1
30889
+ 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]]
30890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30891
+  (0.0ms) SAVEPOINT active_record_1
30892
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
30893
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30894
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30895
+ 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]]
30896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30897
+  (0.1ms) rollback transaction
30898
+  (0.0ms) begin transaction
30899
+  (0.0ms) SAVEPOINT active_record_1
30900
+ 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]]
30901
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30902
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30903
+ 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]]
30904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30905
+  (0.1ms) rollback transaction
30906
+  (0.0ms) begin transaction
30907
+  (0.0ms) SAVEPOINT active_record_1
30908
+ 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]]
30909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30910
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
30911
+  (0.1ms) rollback transaction
30912
+  (0.0ms) begin transaction
30913
+  (0.0ms) SAVEPOINT active_record_1
30914
+ 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]]
30915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30916
+  (0.0ms) SAVEPOINT active_record_1
30917
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30918
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30919
+ 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]]
30920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30921
+  (0.0ms) SAVEPOINT active_record_1
30922
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30923
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30924
+ 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]]
30925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30926
+  (0.0ms) SAVEPOINT active_record_1
30927
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30928
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30929
+ 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]]
30930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30931
+  (0.1ms) rollback transaction
30932
+  (0.0ms) begin transaction
30933
+  (0.0ms) SAVEPOINT active_record_1
30934
+ 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]]
30935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30936
+  (0.0ms) SAVEPOINT active_record_1
30937
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30938
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30939
+ 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]]
30940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30941
+  (0.0ms) SAVEPOINT active_record_1
30942
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30943
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30944
+ 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]]
30945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30946
+  (0.0ms) SAVEPOINT active_record_1
30947
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30948
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30949
+ 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]]
30950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30951
+  (0.1ms) rollback transaction
30952
+  (0.0ms) begin transaction
30953
+  (0.0ms) SAVEPOINT active_record_1
30954
+ 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]]
30955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30956
+  (0.0ms) SAVEPOINT active_record_1
30957
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30958
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30959
+ 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]]
30960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30961
+  (0.0ms) SAVEPOINT active_record_1
30962
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30963
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30964
+ 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]]
30965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30966
+  (0.0ms) SAVEPOINT active_record_1
30967
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30968
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30969
+ 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]]
30970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30971
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
30972
+ "regions".lft BETWEEN 0.0 AND 1.0
30973
+ )
30974
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
30975
+ "regions".lft BETWEEN 0.5 AND 1.0
30976
+ )
30977
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
30978
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
30979
+ )
30980
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
30981
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
30982
+ )
30983
+  (0.1ms) rollback transaction
30984
+  (0.0ms) begin transaction
30985
+  (0.0ms) SAVEPOINT active_record_1
30986
+ 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]]
30987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30988
+  (0.0ms) SAVEPOINT active_record_1
30989
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
30990
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
30991
+ 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]]
30992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30993
+  (0.0ms) SAVEPOINT active_record_1
30994
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
30995
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
30996
+ 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]]
30997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30998
+  (0.0ms) SAVEPOINT active_record_1
30999
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31000
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31001
+ 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]]
31002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31003
+  (0.0ms) SAVEPOINT active_record_1
31004
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2
31005
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
31006
+  (0.1ms) rollback transaction
31007
+  (0.0ms) begin transaction
31008
+  (0.0ms) SAVEPOINT active_record_1
31009
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", ""], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31011
+  (0.0ms) SAVEPOINT active_record_1
31012
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31013
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31014
+ 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]]
31015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31016
+  (0.0ms) SAVEPOINT active_record_1
31017
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31018
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31019
+ 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]]
31020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31021
+  (0.0ms) SAVEPOINT active_record_1
31022
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31023
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
31024
+ 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]]
31025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31026
+  (0.0ms) SAVEPOINT active_record_1
31027
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31028
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
31029
+ 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]]
31030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31031
+  (0.0ms) SAVEPOINT active_record_1
31032
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31033
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
31034
+ 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]]
31035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31036
+  (0.0ms) SAVEPOINT active_record_1
31037
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31038
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
31039
+ 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]]
31040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31041
+  (0.0ms) SAVEPOINT active_record_1
31042
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
31043
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
31044
+ 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]]
31045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31046
+  (0.0ms) SAVEPOINT active_record_1
31047
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
31048
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
31049
+ 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]]
31050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31051
+  (0.0ms) SAVEPOINT active_record_1
31052
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
31053
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
31054
+ 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]]
31055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31056
+  (0.0ms) SAVEPOINT active_record_1
31057
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
31058
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
31059
+ 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]]
31060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31061
+  (0.0ms) SAVEPOINT active_record_1
31062
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
31063
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
31064
+ 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]]
31065
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31066
+  (0.0ms) SAVEPOINT active_record_1
31067
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
31068
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
31069
+ 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]]
31070
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31071
+  (0.0ms) SAVEPOINT active_record_1
31072
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
31073
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
31074
+ 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]]
31075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31076
+  (0.0ms) SAVEPOINT active_record_1
31077
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
31078
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
31079
+ 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]]
31080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31081
+  (0.0ms) SAVEPOINT active_record_1
31082
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
31083
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
31084
+ 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]]
31085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31086
+  (0.0ms) SAVEPOINT active_record_1
31087
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
31088
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
31089
+ 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]]
31090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31091
+  (0.0ms) SAVEPOINT active_record_1
31092
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
31093
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
31094
+ 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]]
31095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31096
+  (0.0ms) SAVEPOINT active_record_1
31097
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
31098
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
31099
+ 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]]
31100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31101
+  (0.0ms) SAVEPOINT active_record_1
31102
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
31103
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
31104
+ 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]]
31105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31106
+  (0.0ms) SAVEPOINT active_record_1
31107
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
31108
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
31109
+ 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]]
31110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31111
+  (0.0ms) SAVEPOINT active_record_1
31112
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
31113
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
31114
+ 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]]
31115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31116
+  (0.0ms) SAVEPOINT active_record_1
31117
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
31118
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
31119
+ 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]]
31120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31121
+  (0.0ms) SAVEPOINT active_record_1
31122
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
31123
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
31124
+ 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]]
31125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31126
+  (0.0ms) SAVEPOINT active_record_1
31127
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
31128
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
31129
+ 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]]
31130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31131
+  (0.0ms) SAVEPOINT active_record_1
31132
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
31133
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
31134
+ 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]]
31135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31136
+  (0.0ms) SAVEPOINT active_record_1
31137
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
31138
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
31139
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112456775], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 25], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
31140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31141
+  (0.0ms) SAVEPOINT active_record_1
31142
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
31143
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
31144
+ 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]]
31145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31146
+  (0.0ms) SAVEPOINT active_record_1
31147
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
31148
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
31149
+ 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]]
31150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31151
+  (0.0ms) SAVEPOINT active_record_1
31152
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
31153
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
31154
+ 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]]
31155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31156
+  (0.0ms) SAVEPOINT active_record_1
31157
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
31158
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
31159
+ 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]]
31160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31161
+  (0.0ms) SAVEPOINT active_record_1
31162
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
31163
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
31164
+ 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]]
31165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31166
+  (0.0ms) SAVEPOINT active_record_1
31167
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
31168
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
31169
+ 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]]
31170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31171
+  (0.0ms) SAVEPOINT active_record_1
31172
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
31173
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
31174
+ 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]]
31175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31176
+  (0.0ms) SAVEPOINT active_record_1
31177
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
31178
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
31179
+ 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]]
31180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31181
+  (0.0ms) SAVEPOINT active_record_1
31182
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
31183
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
31184
+ 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]]
31185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31186
+  (0.0ms) SAVEPOINT active_record_1
31187
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
31188
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
31189
+ 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]]
31190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31191
+  (0.0ms) SAVEPOINT active_record_1
31192
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
31193
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
31194
+ 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]]
31195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31196
+  (0.0ms) SAVEPOINT active_record_1
31197
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
31198
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
31199
+ 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]]
31200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31201
+  (0.0ms) SAVEPOINT active_record_1
31202
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
31203
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
31204
+ 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]]
31205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31206
+  (0.0ms) SAVEPOINT active_record_1
31207
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
31208
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
31209
+ 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]]
31210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31211
+  (0.0ms) SAVEPOINT active_record_1
31212
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
31213
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
31214
+ 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]]
31215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31216
+  (0.0ms) SAVEPOINT active_record_1
31217
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
31218
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
31219
+ 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]]
31220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31221
+  (0.0ms) SAVEPOINT active_record_1
31222
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
31223
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
31224
+ 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]]
31225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31226
+  (0.0ms) SAVEPOINT active_record_1
31227
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
31228
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
31229
+ 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]]
31230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31231
+  (0.1ms) rollback transaction
31232
+  (0.0ms) begin transaction
31233
+  (0.0ms) rollback transaction
31234
+  (0.0ms) begin transaction
31235
+  (0.0ms) SAVEPOINT active_record_1
31236
+ 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]]
31237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31238
+  (0.0ms) SAVEPOINT active_record_1
31239
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31240
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31241
+ 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]]
31242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31243
+  (0.0ms) SAVEPOINT active_record_1
31244
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31245
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31246
+ 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]]
31247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31248
+  (0.0ms) SAVEPOINT active_record_1
31249
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31250
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31251
+ 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]]
31252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31253
+  (0.0ms) SAVEPOINT active_record_1
31254
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31255
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31256
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
31257
+  (0.0ms) SAVEPOINT active_record_1
31258
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31259
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31260
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
31261
+  (0.0ms) SAVEPOINT active_record_1
31262
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31263
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31264
+ 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]]
31265
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31266
+  (0.0ms) SAVEPOINT active_record_1
31267
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31268
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31269
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
31270
+ SQL (0.1ms) UPDATE "regions" SET
31271
+ rgtp = 0 * rgtp + 1 * rgtq,
31272
+ rgtq = -1 * rgtp + 3 * rgtq
31273
+ , rgt = 1.0 * rgtp / rgtq
31274
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
31275
+ "regions".lft BETWEEN 0.5 AND 1.0
31276
+ )
31277
+ SQL (0.1ms) UPDATE "regions" SET
31278
+ lftp = 0 * lftp + 1 * lftq,
31279
+ lftq = -1 * lftp + 3 * lftq
31280
+ , lft = 1.0 * lftp / lftq
31281
+ WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
31282
+ "regions".lft BETWEEN 0.5 AND 1.0
31283
+ )
31284
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
31285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31286
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31287
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
31288
+  (0.1ms) rollback transaction
31289
+  (0.0ms) begin transaction
31290
+  (0.0ms) SAVEPOINT active_record_1
31291
+ 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]]
31292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31293
+  (0.0ms) SAVEPOINT active_record_1
31294
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31295
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31296
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31298
+  (0.0ms) SAVEPOINT active_record_1
31299
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31300
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31301
+ 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", "america"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
31302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31303
+  (0.0ms) SAVEPOINT active_record_1
31304
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31305
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
31306
+ 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", "usa"], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
31307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31308
+  (0.0ms) SAVEPOINT active_record_1
31309
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
31310
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1
31311
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.42857142857142855], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 4], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
31312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31313
+  (0.0ms) SAVEPOINT active_record_1
31314
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31315
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
31316
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.4444444444444444], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 5], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
31317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31318
+  (0.0ms) SAVEPOINT active_record_1
31319
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31320
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31321
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31322
+ SQL (0.1ms) UPDATE "regions" SET
31323
+ rgtp = 3 * rgtp + -1 * rgtq,
31324
+ rgtq = 1 * rgtp + 0 * rgtq
31325
+ , rgt = 1.0 * rgtp / rgtq
31326
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
31327
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
31328
+ )
31329
+ SQL (0.1ms) UPDATE "regions" SET
31330
+ lftp = 3 * lftp + -1 * lftq,
31331
+ lftq = 1 * lftp + 0 * lftq
31332
+ , lft = 1.0 * lftp / lftq
31333
+ WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
31334
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
31335
+ )
31336
+  (0.1ms) UPDATE "regions" SET "region_id" = 2, "lftp" = 2, "lftq" = 3, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 5
31337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31338
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 6]]
31339
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
31340
+ "regions".lft BETWEEN 0.75 AND 1.0
31341
+ )
31342
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31343
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
31344
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
31345
+ )
31346
+  (0.1ms) rollback transaction
31347
+  (0.0ms) begin transaction
31348
+  (0.0ms) SAVEPOINT active_record_1
31349
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31350
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31352
+  (0.0ms) SAVEPOINT active_record_1
31353
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31354
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31355
+ 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]]
31356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31357
+  (0.0ms) SAVEPOINT active_record_1
31358
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31359
+ 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]]
31360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31361
+  (0.0ms) SAVEPOINT active_record_1
31362
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31363
+ 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]]
31364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31365
+  (0.0ms) SAVEPOINT active_record_1
31366
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31367
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31368
+ SQL (0.1ms) UPDATE "regions" SET
31369
+ rgtp = 2 * rgtp + -1 * rgtq,
31370
+ rgtq = 7 * rgtp + -3 * rgtq
31371
+ , rgt = 1.0 * rgtp / rgtq
31372
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
31373
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
31374
+ )
31375
+ SQL (0.1ms) UPDATE "regions" SET
31376
+ lftp = 2 * lftp + -1 * lftq,
31377
+ lftq = 7 * lftp + -3 * lftq
31378
+ , lft = 1.0 * lftp / lftq
31379
+ WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
31380
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
31381
+ )
31382
+  (0.1ms) UPDATE "regions" SET "region_id" = NULL, "lftp" = 1, "lftq" = 5, "rgtq" = 4, "lft" = 0.2, "rgt" = 0.25 WHERE "regions"."id" = 2
31383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31384
+  (0.1ms) rollback transaction
31385
+  (0.0ms) begin transaction
31386
+  (0.0ms) SAVEPOINT active_record_1
31387
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31388
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31390
+  (0.0ms) SAVEPOINT active_record_1
31391
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31392
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31393
+ 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]]
31394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31395
+  (0.0ms) SAVEPOINT active_record_1
31396
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31397
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31398
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
31399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31400
+  (0.0ms) SAVEPOINT active_record_1
31401
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31402
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31403
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31405
+  (0.0ms) SAVEPOINT active_record_1
31406
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31407
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31408
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.7142857142857143], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.75], ["rgtp", 3], ["rgtq", 4]]
31409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31410
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
31411
+  (0.1ms) rollback transaction
31412
+  (0.0ms) begin transaction
31413
+  (0.0ms) SAVEPOINT active_record_1
31414
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31415
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31417
+  (0.0ms) SAVEPOINT active_record_1
31418
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31419
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31420
+ 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]]
31421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31422
+  (0.0ms) SAVEPOINT active_record_1
31423
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31424
+ 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]]
31425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31426
+  (0.0ms) SAVEPOINT active_record_1
31427
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31428
+ 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]]
31429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31430
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
31431
+ 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
31432
+ 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
31433
+  (0.0ms) SAVEPOINT active_record_1
31434
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
31435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31436
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
31437
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
31438
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31439
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
31440
+  (0.0ms) SAVEPOINT active_record_1
31441
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
31442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31443
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
31444
+ 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
31445
+  (0.0ms) SAVEPOINT active_record_1
31446
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
31447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31448
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
31449
+ 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
31450
+  (0.0ms) SAVEPOINT active_record_1
31451
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
31452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31453
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
31454
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
31455
+  (0.1ms) rollback transaction
31456
+  (0.0ms) begin transaction
31457
+  (0.0ms) SAVEPOINT active_record_1
31458
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31459
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31461
+  (0.0ms) SAVEPOINT active_record_1
31462
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31463
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31464
+ 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]]
31465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31466
+  (0.0ms) SAVEPOINT active_record_1
31467
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31468
+ 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]]
31469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31470
+  (0.0ms) SAVEPOINT active_record_1
31471
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31472
+ 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]]
31473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31474
+  (0.0ms) SAVEPOINT active_record_1
31475
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
31476
+  (0.1ms) UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
31477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31478
+  (0.1ms) rollback transaction
31479
+  (0.0ms) begin transaction
31480
+  (0.0ms) SAVEPOINT active_record_1
31481
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31482
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31484
+  (0.0ms) SAVEPOINT active_record_1
31485
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31486
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31487
+ 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]]
31488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31489
+  (0.0ms) SAVEPOINT active_record_1
31490
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31491
+ 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]]
31492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31493
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
31494
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
31495
+ "regions".lft BETWEEN 0.5 AND 1.0
31496
+ )
31497
+  (0.1ms) rollback transaction
31498
+  (0.0ms) begin transaction
31499
+  (0.0ms) SAVEPOINT active_record_1
31500
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31501
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31503
+  (0.0ms) SAVEPOINT active_record_1
31504
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31505
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31506
+ 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]]
31507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31508
+  (0.0ms) SAVEPOINT active_record_1
31509
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31510
+ 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]]
31511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31512
+  (0.0ms) SAVEPOINT active_record_1
31513
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31514
+ 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]]
31515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31516
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
31517
+  (0.1ms) rollback transaction
31518
+  (0.0ms) begin transaction
31519
+  (0.0ms) SAVEPOINT active_record_1
31520
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31521
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31523
+  (0.0ms) SAVEPOINT active_record_1
31524
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31525
+ 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]]
31526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31527
+  (0.0ms) SAVEPOINT active_record_1
31528
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
31529
+ 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]]
31530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31531
+  (0.1ms) rollback transaction
31532
+  (0.1ms) begin transaction
31533
+  (0.0ms) SAVEPOINT active_record_1
31534
+ SQL (2.8ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31536
+  (0.1ms) SAVEPOINT active_record_1
31537
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31538
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31539
+ 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", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31541
+  (0.2ms) SAVEPOINT active_record_1
31542
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31543
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31544
+ 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]]
31545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31546
+  (0.0ms) SAVEPOINT active_record_1
31547
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31548
+ Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31549
+ SQL (0.2ms) 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]]
31550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31551
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
31552
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
31553
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
31554
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
31555
+  (0.1ms) rollback transaction
31556
+  (0.0ms) begin transaction
31557
+  (0.0ms) SAVEPOINT active_record_1
31558
+ 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]]
31559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31560
+  (0.0ms) SAVEPOINT active_record_1
31561
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
31562
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31563
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31564
+ 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]]
31565
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31566
+  (0.1ms) rollback transaction
31567
+  (0.0ms) begin transaction
31568
+  (0.0ms) SAVEPOINT active_record_1
31569
+ 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]]
31570
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31571
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31572
+ 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]]
31573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31574
+  (0.1ms) rollback transaction
31575
+  (0.0ms) begin transaction
31576
+  (0.0ms) SAVEPOINT active_record_1
31577
+ 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]]
31578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31579
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
31580
+  (0.1ms) rollback transaction
31581
+  (0.0ms) begin transaction
31582
+  (0.0ms) SAVEPOINT active_record_1
31583
+ 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]]
31584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31585
+  (0.0ms) SAVEPOINT active_record_1
31586
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31587
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31588
+ 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]]
31589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31590
+  (0.0ms) SAVEPOINT active_record_1
31591
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31592
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31593
+ 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]]
31594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31595
+  (0.0ms) SAVEPOINT active_record_1
31596
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31597
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31598
+ 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]]
31599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31600
+  (0.1ms) rollback transaction
31601
+  (0.0ms) begin transaction
31602
+  (0.0ms) SAVEPOINT active_record_1
31603
+ 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]]
31604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31605
+  (0.0ms) SAVEPOINT active_record_1
31606
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31607
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31608
+ 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]]
31609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31610
+  (0.0ms) SAVEPOINT active_record_1
31611
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31612
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31613
+ 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]]
31614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31615
+  (0.0ms) SAVEPOINT active_record_1
31616
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31617
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31618
+ 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]]
31619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31620
+  (0.1ms) rollback transaction
31621
+  (0.0ms) begin transaction
31622
+  (0.0ms) SAVEPOINT active_record_1
31623
+ 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]]
31624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31625
+  (0.0ms) SAVEPOINT active_record_1
31626
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31627
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31628
+ 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]]
31629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31630
+  (0.0ms) SAVEPOINT active_record_1
31631
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31632
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31633
+ 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]]
31634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31635
+  (0.0ms) SAVEPOINT active_record_1
31636
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31637
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31638
+ 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]]
31639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31640
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
31641
+ "regions".lft BETWEEN 0.0 AND 1.0
31642
+ )
31643
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
31644
+ "regions".lft BETWEEN 0.5 AND 1.0
31645
+ )
31646
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
31647
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
31648
+ )
31649
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
31650
+ "regions".lft BETWEEN 0.6 AND 0.6666666666666666
31651
+ )
31652
+  (0.1ms) rollback transaction
31653
+  (0.0ms) begin transaction
31654
+  (0.0ms) SAVEPOINT active_record_1
31655
+ 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]]
31656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31657
+  (0.0ms) SAVEPOINT active_record_1
31658
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31659
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31660
+ 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]]
31661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31662
+  (0.0ms) SAVEPOINT active_record_1
31663
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31664
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31665
+ 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]]
31666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31667
+  (0.0ms) SAVEPOINT active_record_1
31668
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31669
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31670
+ 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]]
31671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31672
+  (0.0ms) SAVEPOINT active_record_1
31673
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2
31674
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
31675
+  (0.2ms) rollback transaction
31676
+  (0.0ms) begin transaction
31677
+  (0.0ms) SAVEPOINT active_record_1
31678
+ SQL (0.2ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", ""], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31680
+  (0.0ms) SAVEPOINT active_record_1
31681
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31682
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31683
+ 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]]
31684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31685
+  (0.0ms) SAVEPOINT active_record_1
31686
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31687
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31688
+ 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]]
31689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31690
+  (0.0ms) SAVEPOINT active_record_1
31691
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31692
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
31693
+ 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]]
31694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31695
+  (0.0ms) SAVEPOINT active_record_1
31696
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31697
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
31698
+ 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]]
31699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31700
+  (0.0ms) SAVEPOINT active_record_1
31701
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31702
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
31703
+ 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]]
31704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31705
+  (0.0ms) SAVEPOINT active_record_1
31706
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31707
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
31708
+ 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]]
31709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31710
+  (0.0ms) SAVEPOINT active_record_1
31711
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
31712
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
31713
+ 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]]
31714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31715
+  (0.0ms) SAVEPOINT active_record_1
31716
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
31717
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
31718
+ 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]]
31719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31720
+  (0.0ms) SAVEPOINT active_record_1
31721
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
31722
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
31723
+ 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]]
31724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31725
+  (0.0ms) SAVEPOINT active_record_1
31726
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
31727
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
31728
+ 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]]
31729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31730
+  (0.0ms) SAVEPOINT active_record_1
31731
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
31732
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
31733
+ 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]]
31734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31735
+  (0.0ms) SAVEPOINT active_record_1
31736
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
31737
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
31738
+ 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]]
31739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31740
+  (0.0ms) SAVEPOINT active_record_1
31741
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
31742
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
31743
+ 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]]
31744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31745
+  (0.1ms) SAVEPOINT active_record_1
31746
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
31747
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
31748
+ 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]]
31749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31750
+  (0.0ms) SAVEPOINT active_record_1
31751
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
31752
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
31753
+ 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]]
31754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31755
+  (0.0ms) SAVEPOINT active_record_1
31756
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
31757
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
31758
+ 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]]
31759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31760
+  (0.0ms) SAVEPOINT active_record_1
31761
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
31762
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
31763
+ 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]]
31764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31765
+  (0.0ms) SAVEPOINT active_record_1
31766
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
31767
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
31768
+ 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]]
31769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31770
+  (0.0ms) SAVEPOINT active_record_1
31771
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
31772
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
31773
+ 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]]
31774
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31775
+  (0.0ms) SAVEPOINT active_record_1
31776
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
31777
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
31778
+ 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]]
31779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31780
+  (0.0ms) SAVEPOINT active_record_1
31781
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
31782
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
31783
+ 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]]
31784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31785
+  (0.0ms) SAVEPOINT active_record_1
31786
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
31787
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
31788
+ 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]]
31789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31790
+  (0.0ms) SAVEPOINT active_record_1
31791
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
31792
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
31793
+ 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]]
31794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31795
+  (0.0ms) SAVEPOINT active_record_1
31796
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
31797
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
31798
+ 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]]
31799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31800
+  (0.0ms) SAVEPOINT active_record_1
31801
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
31802
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
31803
+ 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]]
31804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31805
+  (0.0ms) SAVEPOINT active_record_1
31806
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
31807
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
31808
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.3819660112456775], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 25], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
31809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31810
+  (0.0ms) SAVEPOINT active_record_1
31811
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
31812
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
31813
+ 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]]
31814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31815
+  (0.0ms) SAVEPOINT active_record_1
31816
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
31817
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
31818
+ 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]]
31819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31820
+  (0.0ms) SAVEPOINT active_record_1
31821
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
31822
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
31823
+ 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]]
31824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31825
+  (0.0ms) SAVEPOINT active_record_1
31826
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
31827
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
31828
+ 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]]
31829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31830
+  (0.0ms) SAVEPOINT active_record_1
31831
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
31832
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
31833
+ 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]]
31834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31835
+  (0.0ms) SAVEPOINT active_record_1
31836
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
31837
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
31838
+ 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]]
31839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31840
+  (0.0ms) SAVEPOINT active_record_1
31841
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
31842
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
31843
+ 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]]
31844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31845
+  (0.0ms) SAVEPOINT active_record_1
31846
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
31847
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
31848
+ SQL (0.2ms) 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]]
31849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31850
+  (0.0ms) SAVEPOINT active_record_1
31851
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
31852
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
31853
+ 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]]
31854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31855
+  (0.0ms) SAVEPOINT active_record_1
31856
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
31857
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
31858
+ 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]]
31859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31860
+  (0.0ms) SAVEPOINT active_record_1
31861
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
31862
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
31863
+ 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]]
31864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31865
+  (0.0ms) SAVEPOINT active_record_1
31866
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
31867
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
31868
+ 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]]
31869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31870
+  (0.0ms) SAVEPOINT active_record_1
31871
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
31872
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
31873
+ 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]]
31874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31875
+  (0.0ms) SAVEPOINT active_record_1
31876
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
31877
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
31878
+ 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]]
31879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31880
+  (0.0ms) SAVEPOINT active_record_1
31881
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
31882
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
31883
+ 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]]
31884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31885
+  (0.0ms) SAVEPOINT active_record_1
31886
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
31887
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
31888
+ 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]]
31889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31890
+  (0.0ms) SAVEPOINT active_record_1
31891
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
31892
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
31893
+ 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]]
31894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31895
+  (0.0ms) SAVEPOINT active_record_1
31896
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
31897
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
31898
+ 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]]
31899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31900
+  (0.1ms) rollback transaction
31901
+  (0.0ms) begin transaction
31902
+  (0.0ms) rollback transaction
31903
+  (0.0ms) begin transaction
31904
+  (0.0ms) SAVEPOINT active_record_1
31905
+ 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]]
31906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31907
+  (0.0ms) SAVEPOINT active_record_1
31908
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31909
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31910
+ 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]]
31911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31912
+  (0.0ms) SAVEPOINT active_record_1
31913
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31914
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31915
+ 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]]
31916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31917
+  (0.0ms) SAVEPOINT active_record_1
31918
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31919
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31920
+ 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]]
31921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31922
+  (0.0ms) SAVEPOINT active_record_1
31923
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31924
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31925
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
31926
+  (0.0ms) SAVEPOINT active_record_1
31927
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31928
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31929
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
31930
+  (0.0ms) SAVEPOINT active_record_1
31931
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31932
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31933
+ 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]]
31934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31935
+  (0.0ms) SAVEPOINT active_record_1
31936
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31937
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31938
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
31939
+ SQL (0.1ms) UPDATE "regions" SET rgtp = 0 * rgtp + 1 * rgtq, rgtq = -1 * rgtp + 3 * rgtq, rgt = 1.0 * (0 * rgtp + 1 * rgtq) / (-1 * rgtp + 3 * rgtq), lftp = 0 * lftp + 1 * lftq, lftq = -1 * lftp + 3 * lftq, lft = 1.0 * (0 * lftp + 1 * lftq) / (-1 * lftp + 3 * lftq) WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
31940
+ "regions".lft BETWEEN 0.5 AND 1.0
31941
+ )
31942
+  (0.1ms) UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
31943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31944
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31945
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
31946
+  (0.1ms) rollback transaction
31947
+  (0.0ms) begin transaction
31948
+  (0.0ms) SAVEPOINT active_record_1
31949
+ 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]]
31950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31951
+  (0.0ms) SAVEPOINT active_record_1
31952
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31953
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31954
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
31955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31956
+  (0.0ms) SAVEPOINT active_record_1
31957
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
31958
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
31959
+ 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", "america"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
31960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31961
+  (0.0ms) SAVEPOINT active_record_1
31962
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31963
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
31964
+ 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", "usa"], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
31965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31966
+  (0.0ms) SAVEPOINT active_record_1
31967
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
31968
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1
31969
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.42857142857142855], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 4], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
31970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31971
+  (0.0ms) SAVEPOINT active_record_1
31972
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31973
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
31974
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.4444444444444444], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 5], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
31975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31976
+  (0.0ms) SAVEPOINT active_record_1
31977
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31978
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31979
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
31980
+ SQL (0.1ms) UPDATE "regions" SET rgtp = 3 * rgtp + -1 * rgtq, rgtq = 1 * rgtp + 0 * rgtq, rgt = 1.0 * (3 * rgtp + -1 * rgtq) / (1 * rgtp + 0 * rgtq), lftp = 3 * lftp + -1 * lftq, lftq = 1 * lftp + 0 * lftq, lft = 1.0 * (3 * lftp + -1 * lftq) / (1 * lftp + 0 * lftq) WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
31981
+ "regions".lft BETWEEN 0.42857142857142855 AND 0.5
31982
+ )
31983
+  (0.1ms) UPDATE "regions" SET "region_id" = 2, "lftp" = 2, "lftq" = 3, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 5
31984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31985
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 6]]
31986
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
31987
+ "regions".lft BETWEEN 0.75 AND 1.0
31988
+ )
31989
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
31990
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
31991
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
31992
+ )
31993
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
31994
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
31995
+ "regions".lft BETWEEN 0.5 AND 1.0
31996
+ )
31997
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
31998
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
31999
+ "regions".lft BETWEEN 0.3333333333333333 AND 0.5
32000
+ )
32001
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
32002
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
32003
+ "regions".lft BETWEEN 0.4 AND 0.5
32004
+ )
32005
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32006
+  (0.1ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
32007
+ "regions".lft BETWEEN 0.0 AND 1.0
32008
+ )
32009
+  (0.1ms) rollback transaction
32010
+  (0.1ms) begin transaction
32011
+  (0.0ms) SAVEPOINT active_record_1
32012
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32013
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32015
+  (0.0ms) SAVEPOINT active_record_1
32016
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32017
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
32018
+ 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]]
32019
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32020
+  (0.0ms) SAVEPOINT active_record_1
32021
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32022
+ 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]]
32023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32024
+  (0.0ms) SAVEPOINT active_record_1
32025
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32026
+ 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]]
32027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32028
+  (0.0ms) SAVEPOINT active_record_1
32029
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
32030
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32031
+ SQL (0.1ms) UPDATE "regions" SET rgtp = 2 * rgtp + -1 * rgtq, rgtq = 7 * rgtp + -3 * rgtq, rgt = 1.0 * (2 * rgtp + -1 * rgtq) / (7 * rgtp + -3 * rgtq), lftp = 2 * lftp + -1 * lftq, lftq = 7 * lftp + -3 * lftq, lft = 1.0 * (2 * lftp + -1 * lftq) / (7 * lftp + -3 * lftq) WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
32032
+ "regions".lft BETWEEN 0.6666666666666666 AND 1.0
32033
+ )
32034
+  (0.1ms) UPDATE "regions" SET "region_id" = NULL, "lftp" = 1, "lftq" = 5, "rgtq" = 4, "lft" = 0.2, "rgt" = 0.25 WHERE "regions"."id" = 2
32035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32036
+  (0.1ms) rollback transaction
32037
+  (0.0ms) begin transaction
32038
+  (0.0ms) SAVEPOINT active_record_1
32039
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32040
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32042
+  (0.0ms) SAVEPOINT active_record_1
32043
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32044
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
32045
+ 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]]
32046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32047
+  (0.0ms) SAVEPOINT active_record_1
32048
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32049
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
32050
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 1], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
32051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32052
+  (0.0ms) SAVEPOINT active_record_1
32053
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
32054
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
32055
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32057
+  (0.0ms) SAVEPOINT active_record_1
32058
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
32059
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
32060
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.7142857142857143], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.75], ["rgtp", 3], ["rgtq", 4]]
32061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32062
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
32063
+  (0.1ms) rollback transaction
32064
+  (0.0ms) begin transaction
32065
+  (0.0ms) SAVEPOINT active_record_1
32066
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32067
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32069
+  (0.0ms) SAVEPOINT active_record_1
32070
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32071
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
32072
+ 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]]
32073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32074
+  (0.0ms) SAVEPOINT active_record_1
32075
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32076
+ 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]]
32077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32078
+  (0.0ms) SAVEPOINT active_record_1
32079
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32080
+ 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]]
32081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32082
+ SQL (0.1ms) UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
32083
+ 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
32084
+ 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
32085
+  (0.0ms) SAVEPOINT active_record_1
32086
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
32087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32088
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
32089
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1
32090
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32091
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
32092
+  (0.0ms) SAVEPOINT active_record_1
32093
+  (0.1ms) UPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2
32094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32095
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
32096
+ 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
32097
+  (0.0ms) SAVEPOINT active_record_1
32098
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
32099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32100
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
32101
+ 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
32102
+  (0.0ms) SAVEPOINT active_record_1
32103
+  (0.1ms) UPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4
32104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32105
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
32106
+ Region Load (0.2ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
32107
+  (0.1ms) rollback transaction
32108
+  (0.0ms) begin transaction
32109
+  (0.0ms) SAVEPOINT active_record_1
32110
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32111
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32113
+  (0.0ms) SAVEPOINT active_record_1
32114
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32115
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
32116
+ 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]]
32117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32118
+  (0.0ms) SAVEPOINT active_record_1
32119
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32120
+ 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]]
32121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32122
+  (0.0ms) SAVEPOINT active_record_1
32123
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32124
+ 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]]
32125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32126
+  (0.0ms) SAVEPOINT active_record_1
32127
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
32128
+  (0.1ms) UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
32129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32130
+  (0.1ms) rollback transaction
32131
+  (0.0ms) begin transaction
32132
+  (0.0ms) SAVEPOINT active_record_1
32133
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32134
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32136
+  (0.0ms) SAVEPOINT active_record_1
32137
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32138
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
32139
+ 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]]
32140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32141
+  (0.0ms) SAVEPOINT active_record_1
32142
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32143
+ 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]]
32144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32145
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
32146
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
32147
+ "regions".lft BETWEEN 0.5 AND 1.0
32148
+ )
32149
+  (0.1ms) rollback transaction
32150
+  (0.0ms) begin transaction
32151
+  (0.0ms) SAVEPOINT active_record_1
32152
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32153
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32155
+  (0.0ms) SAVEPOINT active_record_1
32156
+ Region Load (0.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
32157
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
32158
+ 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]]
32159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32160
+  (0.0ms) SAVEPOINT active_record_1
32161
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32162
+ 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]]
32163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32164
+  (0.0ms) SAVEPOINT active_record_1
32165
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32166
+ 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]]
32167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32168
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
32169
+  (0.1ms) rollback transaction
32170
+  (0.0ms) begin transaction
32171
+  (0.0ms) SAVEPOINT active_record_1
32172
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32173
+ SQL (0.1ms) INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32175
+  (0.0ms) SAVEPOINT active_record_1
32176
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32177
+ 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]]
32178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32179
+  (0.0ms) SAVEPOINT active_record_1
32180
+ Region Load (0.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
32181
+ 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]]
32182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32183
+  (0.1ms) rollback transaction