acts_as_nested_interval 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/acts_as_nested_interval/instance_methods.rb +16 -14
- data/lib/acts_as_nested_interval/version.rb +1 -1
- data/test/acts_as_nested_interval_test.rb +14 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20121004204252_change_interval_precision.rb +6 -0
- data/test/dummy/db/schema.rb +9 -9
- data/test/dummy/log/development.log +53 -0
- data/test/dummy/log/test.log +1374 -0
- metadata +4 -2
data/README.md
CHANGED
@@ -181,7 +181,7 @@ This might change once the AR identity_map is finished.
|
|
181
181
|
Acknowledgement: http://arxiv.org/html/cs.DB/0401014 by Vadim Tropashko.
|
182
182
|
|
183
183
|
https://github.com/pythonic
|
184
|
+
https://github.com/klobuczek
|
184
185
|
https://github.com/clyfe
|
185
186
|
https://github.com/quangquach
|
186
187
|
https://github.com/kidlab
|
187
|
-
https://github.com/klobuczek
|
@@ -127,31 +127,33 @@ module ActsAsNestedInterval
|
|
127
127
|
else # child move
|
128
128
|
set_nested_interval *parent.next_child_lft
|
129
129
|
end
|
130
|
-
mysql_tmp = "@" if ["MySQL", "Mysql2"].include?(connection.adapter_name)
|
131
130
|
cpp = db_self.lftq * rgtp - db_self.rgtq * lftp
|
132
131
|
cpq = db_self.rgtp * lftp - db_self.lftp * rgtp
|
133
132
|
cqp = db_self.lftq * rgtq - db_self.rgtq * lftq
|
134
133
|
cqq = db_self.rgtp * lftq - db_self.lftp * rgtq
|
135
134
|
|
136
135
|
updates = {}
|
137
|
-
vars =
|
138
|
-
|
136
|
+
vars = Set.new
|
137
|
+
mysql = ["MySQL", "Mysql2"].include?(connection.adapter_name)
|
138
|
+
var = ->(v) { mysql ? vars.add?(v) ? "(@#{v} := #{v})" : "@#{v}" : v }
|
139
|
+
multiply = ->(c, b) { "#{c} * #{var.(b)}" }
|
140
|
+
add = ->(a, b) { "#{a} + #{b}" }
|
141
|
+
one = sprintf("%#.30f", 1)
|
142
|
+
divide = ->(p, q) { "#{one} * (#{p}) / (#{q})" }
|
139
143
|
|
140
144
|
if has_attribute?(:rgtp) && has_attribute?(:rgtq)
|
141
|
-
updates[:rgtp] =
|
142
|
-
updates[:rgtq] =
|
143
|
-
|
144
|
-
updates[:rgt] = "1.0 * (#{updates[:rgtp]}) / (#{updates[:rgtq]})" if has_attribute?(:rgt)
|
145
|
+
updates[:rgtp] = -> { add.(multiply.(cpp, :rgtp), multiply.(cpq, :rgtq)) }
|
146
|
+
updates[:rgtq] = -> { add.(multiply.(cqp, :rgtp), multiply.(cqq, :rgtq)) }
|
147
|
+
updates[:rgt] = -> { divide.(updates[:rgtp].(), updates[:rgtq].()) } if has_attribute?(:rgt)
|
145
148
|
end
|
146
149
|
|
147
|
-
updates[:lftp] =
|
148
|
-
updates[:lftq] =
|
149
|
-
updates[:lft] =
|
150
|
+
updates[:lftp] = -> { add.(multiply.(cpp, :lftp), multiply.(cpq, :lftq)) }
|
151
|
+
updates[:lftq] = -> { add.(multiply.(cqp, :lftp), multiply.(cqq, :lftq)) }
|
152
|
+
updates[:lft] = -> { divide.(updates[:lftp].(), updates[:lftq].()) } if has_attribute?(:lft)
|
150
153
|
|
151
|
-
sql = updates.map{ |k, v| "#{k} = #{v}"}.join(', ')
|
152
|
-
|
153
|
-
|
154
|
-
db_self.descendants.update_all sql, if_vars
|
154
|
+
sql = updates.map { |k, v| "#{k} = #{v.()}" }.join(', ')
|
155
|
+
|
156
|
+
db_self.descendants.update_all sql
|
155
157
|
end
|
156
158
|
|
157
159
|
def ancestor_of?(node)
|
@@ -153,6 +153,20 @@ class ActsAsNestedIntervalTest < ActiveSupport::TestCase
|
|
153
153
|
assert_equal 5, earth.reload.descendants.count
|
154
154
|
end
|
155
155
|
|
156
|
+
def test_database_precision
|
157
|
+
root = Region.create name: 'root'
|
158
|
+
l1=Region.create(name: 'l1', parent: root)
|
159
|
+
l2=Region.create(name: 'l2', parent: l1)
|
160
|
+
l3=Region.create(name: 'l3', parent: l2)
|
161
|
+
l4=Region.create(name: 'l4', parent: l3)
|
162
|
+
l3.parent = l1
|
163
|
+
l3.save!
|
164
|
+
#make sure database calculates with the same precision as ruby
|
165
|
+
#l3.rgt is calculated by ruby, but l4.rgt is calculated by the database
|
166
|
+
#the difference is only visible with rgt as double
|
167
|
+
assert_equal 2, Region.where("abs(rgt - (select rgt from regions where id =#{l3.id})) < 1e-16").count
|
168
|
+
end
|
169
|
+
|
156
170
|
def test_destroy
|
157
171
|
earth = Region.create name: "Earth"
|
158
172
|
oceania = Region.create name: "Oceania", parent: earth
|
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,18 +11,18 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20121004204252) do
|
15
15
|
|
16
16
|
create_table "regions", :force => true do |t|
|
17
|
-
t.boolean "fiction",
|
17
|
+
t.boolean "fiction", :default => false, :null => false
|
18
18
|
t.integer "region_id"
|
19
|
-
t.integer "lftp",
|
20
|
-
t.integer "lftq",
|
21
|
-
t.integer "rgtp",
|
22
|
-
t.integer "rgtq",
|
23
|
-
t.
|
24
|
-
t.
|
25
|
-
t.string "name",
|
19
|
+
t.integer "lftp", :null => false
|
20
|
+
t.integer "lftq", :null => false
|
21
|
+
t.integer "rgtp", :null => false
|
22
|
+
t.integer "rgtq", :null => false
|
23
|
+
t.decimal "lft", :precision => 31, :scale => 30, :null => false
|
24
|
+
t.decimal "rgt", :precision => 31, :scale => 30, :null => false
|
25
|
+
t.string "name", :null => false
|
26
26
|
end
|
27
27
|
|
28
28
|
end
|
@@ -236,3 +236,56 @@ Migrating to CreateRegions (20120302143528)
|
|
236
236
|
[1m[35m (156.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
237
237
|
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
238
238
|
[1m[35m (154.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120302143528')
|
239
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
240
|
+
Migrating to CreateRegions (20120302143528)
|
241
|
+
Migrating to ChangeIntervalPrecision (20121004204252)
|
242
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
243
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
244
|
+
[1m[35m (0.5ms)[0m CREATE TEMPORARY TABLE "altered_regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
|
245
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("regions")[0m
|
246
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "regions"
|
247
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "regions"[0m
|
248
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
|
249
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("altered_regions")[0m
|
250
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "altered_regions"
|
251
|
+
[1m[36m (55.4ms)[0m [1mDROP TABLE "altered_regions"[0m
|
252
|
+
[1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "altered_regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
|
253
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("regions")[0m
|
254
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "regions"
|
255
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "regions"[0m
|
256
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL)
|
257
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("altered_regions")[0m
|
258
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "altered_regions"
|
259
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_regions"[0m
|
260
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121004204252')
|
261
|
+
[1m[36m (268.2ms)[0m [1mcommit transaction[0m
|
262
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
263
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
264
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("regions")
|
265
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
266
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
267
|
+
[1m[36m (180.9ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL) [0m
|
268
|
+
[1m[35m (165.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
269
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
270
|
+
[1m[35m (166.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
271
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
272
|
+
[1m[35m (143.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121004204252')
|
273
|
+
[1m[36m (145.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120302143528')[0m
|
274
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
275
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
276
|
+
[1m[36m (172.9ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL) [0m
|
277
|
+
[1m[35m (166.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
278
|
+
[1m[36m (0.2ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
279
|
+
[1m[35m (189.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
280
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
281
|
+
[1m[35m (166.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121004204252')
|
282
|
+
[1m[36m (156.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120302143528')[0m
|
283
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
284
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
285
|
+
[1m[36m (182.0ms)[0m [1mCREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL) [0m
|
286
|
+
[1m[35m (156.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
287
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
288
|
+
[1m[35m (189.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
289
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
290
|
+
[1m[35m (243.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121004204252')
|
291
|
+
[1m[36m (211.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120302143528')[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -32181,3 +32181,1377 @@ SQLite3::SQLException: near "lft": syntax error: UPDATE "regions" SET
|
|
32181
32181
|
[1m[35mSQL (0.1ms)[0m 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
32182
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32183
32183
|
[1m[35m (0.1ms)[0m rollback transaction
|
32184
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32185
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32186
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32187
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32188
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32189
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32190
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32191
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
32192
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32193
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32194
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32195
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32196
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32197
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32199
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32200
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32201
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32202
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32203
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
|
32204
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)[0m
|
32205
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
|
32206
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
32207
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32208
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32209
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32210
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32211
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32212
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32213
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
|
32214
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32215
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32216
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32217
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32218
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32219
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32220
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32221
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32222
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32223
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32224
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32225
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32226
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32227
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32228
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32229
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32230
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32231
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
|
32232
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32233
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32234
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32235
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32236
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32237
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32238
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32239
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32240
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32241
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32242
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32243
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32244
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32245
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32246
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32247
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32248
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32249
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32250
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
|
32251
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32252
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32253
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32254
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32255
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "root"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32256
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32257
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32258
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32259
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32260
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "l1"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32261
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32262
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32263
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32264
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32265
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "l2"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32266
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32267
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32268
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 3]]
|
32269
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
|
32270
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "l3"], ["region_id", 3], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32272
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32273
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
|
32274
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1[0m
|
32275
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.8], ["lftp", 4], ["lftq", 5], ["name", "l4"], ["region_id", 4], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32276
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32277
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32278
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
32279
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32280
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32281
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "regions" SET rgtp = 5 * rgtp + -3 * rgtq, rgtq = 7 * rgtp + -4 * rgtq, rgt = 1.000000000000000000000000000000*(5 * rgtp + -3 * rgtq)/(7 * rgtp + -4 * rgtq), lftp = 5 * lftp + -3 * lftq, lftq = 7 * lftp + -4 * lftq, lft = 1.000000000000000000000000000000*(5 * lftp + -3 * lftq)/(7 * lftp + -4 * lftq) WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
|
32282
|
+
"regions".lft BETWEEN 0.75 AND 1.0
|
32283
|
+
)
|
32284
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "regions" SET "region_id" = 2, "lftq" = 5, "rgtp" = 2, "rgtq" = 3, "lft" = 0.6, "rgt" = 0.6666666666666666 WHERE "regions"."id" = 4[0m
|
32285
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32286
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE (abs(rgt - (select rgt from regions where id =4)) < 1e-16)[0m
|
32287
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32288
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32289
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32290
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32291
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32292
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32293
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32294
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32295
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
32296
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32297
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32298
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32299
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32300
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32301
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32302
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32303
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32304
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32305
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32306
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32307
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32308
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32309
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32310
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32311
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32312
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32313
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32314
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32315
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32316
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32317
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32318
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32319
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32320
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32322
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32323
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32324
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32325
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32326
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32327
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
|
32328
|
+
"regions".lft BETWEEN 0.0 AND 1.0
|
32329
|
+
)
|
32330
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
|
32331
|
+
"regions".lft BETWEEN 0.5 AND 1.0
|
32332
|
+
)[0m
|
32333
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
|
32334
|
+
"regions".lft BETWEEN 0.6666666666666666 AND 1.0
|
32335
|
+
)
|
32336
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
|
32337
|
+
"regions".lft BETWEEN 0.6 AND 0.6666666666666666
|
32338
|
+
)[0m
|
32339
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32340
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32341
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32342
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32343
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32344
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32345
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32346
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32347
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32348
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32349
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32350
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32351
|
+
[1m[35mRegion Load (0.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32352
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32353
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32354
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32355
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32356
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32357
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32358
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32359
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32360
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2[0m
|
32361
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32362
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
32363
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32364
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32365
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
32366
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32367
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32368
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32369
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32370
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32371
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32372
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32373
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32374
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32375
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32376
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32377
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32378
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 3]]
|
32379
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
|
32380
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.4], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
32381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32382
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32383
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
|
32384
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1[0m
|
32385
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32386
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32387
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32388
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 5]]
|
32389
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
|
32390
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38461538461538464], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 5], ["rgt", 0.4], ["rgtp", 2], ["rgtq", 5]]
|
32391
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32392
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32393
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
|
32394
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1[0m
|
32395
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32396
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32397
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32398
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 7]]
|
32399
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
|
32400
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38235294117647056], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 7], ["rgt", 0.38461538461538464], ["rgtp", 5], ["rgtq", 13]]
|
32401
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32403
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
|
32404
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1[0m
|
32405
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32406
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32407
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32408
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 9]]
|
32409
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
|
32410
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38202247191011235], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 9], ["rgt", 0.38235294117647056], ["rgtp", 13], ["rgtq", 34]]
|
32411
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32412
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32413
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
|
32414
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1[0m
|
32415
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32416
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32417
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32418
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 11]]
|
32419
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
|
32420
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38197424892703863], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 11], ["rgt", 0.38202247191011235], ["rgtp", 34], ["rgtq", 89]]
|
32421
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32422
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32423
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
|
32424
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1[0m
|
32425
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32426
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32427
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32428
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 13]]
|
32429
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
|
32430
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819672131147541], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 13], ["rgt", 0.38197424892703863], ["rgtp", 89], ["rgtq", 233]]
|
32431
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32432
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32433
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
|
32434
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1[0m
|
32435
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32436
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32437
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32438
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 15]]
|
32439
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
|
32440
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196618659987475], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 15], ["rgt", 0.3819672131147541], ["rgtp", 233], ["rgtq", 610]]
|
32441
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32442
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32443
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
|
32444
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1[0m
|
32445
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32446
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32447
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32448
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 17]]
|
32449
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
|
32450
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196603683329344], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 17], ["rgt", 0.38196618659987475], ["rgtp", 610], ["rgtq", 1597]]
|
32451
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32452
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32453
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
|
32454
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1[0m
|
32455
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32456
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32457
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32458
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 19]]
|
32459
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
|
32460
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601498264204], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 19], ["rgt", 0.38196603683329344], ["rgtp", 1597], ["rgtq", 4181]]
|
32461
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32462
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32463
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
|
32464
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1[0m
|
32465
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32466
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32468
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 21]]
|
32469
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
|
32470
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601179467493], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 21], ["rgt", 0.38196601498264204], ["rgtp", 4181], ["rgtq", 10946]]
|
32471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32473
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
|
32474
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1[0m
|
32475
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32476
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32477
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32478
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 23]]
|
32479
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
|
32480
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819660113295568], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 23], ["rgt", 0.38196601179467493], ["rgtp", 10946], ["rgtq", 28657]]
|
32481
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32482
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32483
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
|
32484
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1[0m
|
32485
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32487
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32488
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 25]]
|
32489
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
|
32490
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.381966011261697], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 25], ["rgt", 0.3819660113295568], ["rgtp", 28657], ["rgtq", 75025]]
|
32491
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32492
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32493
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
|
32494
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1[0m
|
32495
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32496
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32497
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32498
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 27]]
|
32499
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
|
32500
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125179636], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 27], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
|
32501
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32502
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32503
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
|
32504
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1[0m
|
32505
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32506
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32507
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32508
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 29]]
|
32509
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
|
32510
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819660112503519], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 29], ["rgt", 0.38196601125179636], ["rgtp", 196418], ["rgtq", 514229]]
|
32511
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32512
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32513
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
|
32514
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1[0m
|
32515
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32516
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32517
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32518
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 31]]
|
32519
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
|
32520
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819660112501411], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 31], ["rgt", 0.3819660112503519], ["rgtp", 514229], ["rgtq", 1346269]]
|
32521
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32522
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32523
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
|
32524
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1[0m
|
32525
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32526
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32527
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32528
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 33]]
|
32529
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
|
32530
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819660112501104], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 33], ["rgt", 0.3819660112501411], ["rgtp", 1346269], ["rgtq", 3524578]]
|
32531
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32532
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32533
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
|
32534
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1[0m
|
32535
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32536
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32537
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32538
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 35]]
|
32539
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
|
32540
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010593], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 35], ["rgt", 0.3819660112501104], ["rgtp", 3524578], ["rgtq", 9227465]]
|
32541
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32542
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32543
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
|
32544
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1[0m
|
32545
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32546
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32548
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 37]]
|
32549
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
|
32550
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010526], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 37], ["rgt", 0.38196601125010593], ["rgtp", 9227465], ["rgtq", 24157817]]
|
32551
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32552
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32553
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
|
32554
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1[0m
|
32555
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32556
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32557
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32558
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 39]]
|
32559
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
|
32560
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 39], ["rgt", 0.38196601125010526], ["rgtp", 24157817], ["rgtq", 63245986]]
|
32561
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32562
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32563
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
|
32564
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1[0m
|
32565
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32566
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32567
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32568
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 41]]
|
32569
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
|
32570
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 41], ["rgt", 0.38196601125010515], ["rgtp", 63245986], ["rgtq", 165580141]]
|
32571
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32572
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32573
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
|
32574
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1[0m
|
32575
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32576
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32577
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32578
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 43]]
|
32579
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
|
32580
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 43], ["rgt", 0.38196601125010515], ["rgtp", 165580141], ["rgtq", 433494437]]
|
32581
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32582
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32583
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
|
32584
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1[0m
|
32585
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32586
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32587
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32588
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32589
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32590
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32591
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32592
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32593
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32594
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32595
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32596
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32597
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32598
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32600
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32601
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32602
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32603
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32604
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32605
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32606
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32607
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32608
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32609
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32610
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32611
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32612
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32613
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32614
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32615
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
|
32616
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32617
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32618
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32619
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32620
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
32621
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32622
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32623
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32624
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 5]]
|
32625
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
|
32626
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "regions" SET rgtp = 0 * rgtp + 1 * rgtq, rgtq = -1 * rgtp + 3 * rgtq, rgt = 1.000000000000000000000000000000*(0 * rgtp + 1 * rgtq)/(-1 * rgtp + 3 * rgtq), lftp = 0 * lftp + 1 * lftq, lftq = -1 * lftp + 3 * lftq, lft = 1.000000000000000000000000000000*(0 * lftp + 1 * lftq)/(-1 * lftp + 3 * lftq) WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
|
32627
|
+
"regions".lft BETWEEN 0.5 AND 1.0
|
32628
|
+
)[0m
|
32629
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
|
32630
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32631
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
|
32632
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
32633
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32634
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32635
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32636
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32637
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32638
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32639
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32640
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32641
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32642
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32643
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32644
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32645
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32646
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "america"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
32647
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32648
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32649
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
|
32650
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1[0m
|
32651
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32652
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32653
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32654
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
32655
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1
|
32656
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.42857142857142855], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 4], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
32657
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32658
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32659
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
|
32660
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1[0m
|
32661
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32662
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32663
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32664
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 5]]
|
32665
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32666
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32667
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "regions" SET rgtp = 3 * rgtp + -1 * rgtq, rgtq = 1 * rgtp + 0 * rgtq, rgt = 1.000000000000000000000000000000*(3 * rgtp + -1 * rgtq)/(1 * rgtp + 0 * rgtq), lftp = 3 * lftp + -1 * lftq, lftq = 1 * lftp + 0 * lftq, lft = 1.000000000000000000000000000000*(3 * lftp + -1 * lftq)/(1 * lftp + 0 * lftq) WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
|
32668
|
+
"regions".lft BETWEEN 0.42857142857142855 AND 0.5
|
32669
|
+
)
|
32670
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "regions" SET "region_id" = 2, "lftp" = 2, "lftq" = 3, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 5[0m
|
32671
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32672
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 6]]
|
32673
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
|
32674
|
+
"regions".lft BETWEEN 0.75 AND 1.0
|
32675
|
+
)
|
32676
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 5]]
|
32677
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
|
32678
|
+
"regions".lft BETWEEN 0.6666666666666666 AND 1.0
|
32679
|
+
)
|
32680
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32681
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
|
32682
|
+
"regions".lft BETWEEN 0.5 AND 1.0
|
32683
|
+
)
|
32684
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 3]]
|
32685
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
|
32686
|
+
"regions".lft BETWEEN 0.3333333333333333 AND 0.5
|
32687
|
+
)
|
32688
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
32689
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
|
32690
|
+
"regions".lft BETWEEN 0.4 AND 0.5
|
32691
|
+
)
|
32692
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32693
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
|
32694
|
+
"regions".lft BETWEEN 0.0 AND 1.0
|
32695
|
+
)
|
32696
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
32697
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32698
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32699
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32700
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32701
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32702
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32703
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32704
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32705
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32706
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32707
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32708
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32709
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32710
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32711
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32712
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32713
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32714
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32715
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32716
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32717
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32718
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "regions" SET rgtp = 2 * rgtp + -1 * rgtq, rgtq = 7 * rgtp + -3 * rgtq, rgt = 1.000000000000000000000000000000*(2 * rgtp + -1 * rgtq)/(7 * rgtp + -3 * rgtq), lftp = 2 * lftp + -1 * lftq, lftq = 7 * lftp + -3 * lftq, lft = 1.000000000000000000000000000000*(2 * lftp + -1 * lftq)/(7 * lftp + -3 * lftq) WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
|
32719
|
+
"regions".lft BETWEEN 0.6666666666666666 AND 1.0
|
32720
|
+
)[0m
|
32721
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "region_id" = NULL, "lftp" = 1, "lftq" = 5, "rgtq" = 4, "lft" = 0.2, "rgt" = 0.25 WHERE "regions"."id" = 2
|
32722
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32723
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32724
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32725
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32726
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32727
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32728
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32729
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32730
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32731
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32732
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32733
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32734
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32735
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32736
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32737
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32738
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32739
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32740
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32741
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32742
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32743
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32744
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32745
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32746
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32747
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32748
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32749
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
32750
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32751
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32752
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32753
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32754
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32755
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32756
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32757
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32758
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32759
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32760
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32761
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32762
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32763
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32764
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32765
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32766
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32767
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32768
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32769
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
|
32770
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
32771
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
|
32772
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32773
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
|
32774
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32775
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
|
32776
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1[0m
|
32777
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32778
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1[0m
|
32779
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32780
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2[0m
|
32781
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32782
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
32783
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
|
32784
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32785
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
|
32786
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32787
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
|
32788
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1[0m
|
32789
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32790
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4[0m
|
32791
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32792
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
32793
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
32794
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32795
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32796
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32797
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32798
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32799
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32800
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32801
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32802
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32803
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32804
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32805
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32806
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32807
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32808
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32809
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32810
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32811
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32812
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32813
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32814
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
32815
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
|
32816
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32817
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32818
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32819
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32820
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32821
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32822
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32823
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32824
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32825
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32826
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32828
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32829
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32830
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", true], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32831
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32832
|
+
[1m[36mRegion Load (0.4ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
32833
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
|
32834
|
+
"regions".lft BETWEEN 0.5 AND 1.0
|
32835
|
+
)
|
32836
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32837
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32838
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32839
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32840
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32841
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32842
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32843
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32844
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32845
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
32846
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32847
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32848
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32849
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32850
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32851
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32852
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
32853
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32854
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32855
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
32856
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
32857
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32858
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32859
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32860
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32861
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32862
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32863
|
+
[1m[35mRegion Load (0.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32864
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "2"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
32865
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32866
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32867
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
32868
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "3"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
|
32869
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32870
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32872
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32873
|
+
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32874
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32875
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32876
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32877
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32878
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
32879
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32880
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32881
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32882
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32883
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32884
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32885
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32886
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32887
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32888
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32889
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32890
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
|
32891
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)[0m
|
32892
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
|
32893
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
32894
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32895
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32896
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32897
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32898
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32899
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32900
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 LIMIT 1
|
32901
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32902
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32903
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32904
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32905
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32906
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32907
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32908
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32909
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32910
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32911
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32912
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32913
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32914
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32915
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32916
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32917
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32918
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL
|
32919
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32920
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32921
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32922
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32923
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32924
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32925
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32926
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32927
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32928
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32929
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32930
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32931
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32932
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32933
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32934
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32935
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32936
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32937
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", 0.6666666666666666], ["rgtp", 2], ["rgtq", 3]]
|
32938
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32939
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32940
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32941
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32942
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "root"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32943
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32944
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32945
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
32946
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
32947
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "l1"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32948
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32949
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32950
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32951
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32952
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "l2"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32953
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32954
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32955
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 3]]
|
32956
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
|
32957
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "l3"], ["region_id", 3], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32958
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32959
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32960
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
|
32961
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1[0m
|
32962
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["fiction", false], ["lft", 0.8], ["lftp", 4], ["lftq", 5], ["name", "l4"], ["region_id", 4], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32963
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32964
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32965
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
32966
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32967
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32968
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "regions" SET rgtp = 5 * rgtp + -3 * rgtq, rgtq = 7 * rgtp + -4 * rgtq, rgt = 1.000000000000000000000000000000 * (5 * rgtp + -3 * rgtq) / (7 * rgtp + -4 * rgtq), lftp = 5 * lftp + -3 * lftq, lftq = 7 * lftp + -4 * lftq, lft = 1.000000000000000000000000000000 * (5 * lftp + -3 * lftq) / (7 * lftp + -4 * lftq) WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
|
32969
|
+
"regions".lft BETWEEN 0.75 AND 1.0
|
32970
|
+
)
|
32971
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "regions" SET "region_id" = 2, "lftq" = 5, "rgtp" = 2, "rgtq" = 3, "lft" = 0.6, "rgt" = 0.6666666666666666 WHERE "regions"."id" = 4[0m
|
32972
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32973
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE (abs(rgt - (select rgt from regions where id =4)) < 1e-16)[0m
|
32974
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32975
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32976
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32977
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32978
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32979
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32980
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
32981
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
32982
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32983
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32984
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32985
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
32986
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
32987
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32988
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32989
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32990
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
32991
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
32992
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
32993
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32994
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32995
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32996
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32997
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
32998
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32999
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33000
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33001
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33002
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33003
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33004
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33005
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
33006
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
33007
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33008
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33009
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33010
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
33011
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
33012
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33013
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33014
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
|
33015
|
+
"regions".lft BETWEEN 0.0 AND 1.0
|
33016
|
+
)
|
33017
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
|
33018
|
+
"regions".lft BETWEEN 0.5 AND 1.0
|
33019
|
+
)[0m
|
33020
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
|
33021
|
+
"regions".lft BETWEEN 0.6666666666666666 AND 1.0
|
33022
|
+
)
|
33023
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
|
33024
|
+
"regions".lft BETWEEN 0.6 AND 0.6666666666666666
|
33025
|
+
)[0m
|
33026
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33027
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33028
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33029
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33030
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33031
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33032
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33033
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33034
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33035
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33036
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33037
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
33038
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
33039
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33040
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33041
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33042
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
33043
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
33044
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33045
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33046
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33047
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE "regions"."region_id" = 2[0m
|
33048
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
33049
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33050
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33052
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
33053
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33054
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33055
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
33056
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
33057
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33058
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33059
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33060
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33061
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33062
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33063
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33064
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33065
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 3]]
|
33066
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1
|
33067
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.4], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 3], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
33068
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33069
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33070
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
|
33071
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1[0m
|
33072
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33073
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33074
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33075
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 5]]
|
33076
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
|
33077
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38461538461538464], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 5], ["rgt", 0.4], ["rgtp", 2], ["rgtq", 5]]
|
33078
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33079
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33080
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
|
33081
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1[0m
|
33082
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33083
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33084
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33085
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 7]]
|
33086
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1
|
33087
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38235294117647056], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 7], ["rgt", 0.38461538461538464], ["rgtp", 5], ["rgtq", 13]]
|
33088
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33089
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33090
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
|
33091
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 7 ORDER BY lftq DESC LIMIT 1[0m
|
33092
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33093
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33094
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33095
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 9]]
|
33096
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1
|
33097
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38202247191011235], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 9], ["rgt", 0.38235294117647056], ["rgtp", 13], ["rgtq", 34]]
|
33098
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33099
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33100
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
|
33101
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 9 ORDER BY lftq DESC LIMIT 1[0m
|
33102
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33103
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33104
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33105
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 11]]
|
33106
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1
|
33107
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38197424892703863], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 11], ["rgt", 0.38202247191011235], ["rgtp", 34], ["rgtq", 89]]
|
33108
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33109
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33110
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
|
33111
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 11 ORDER BY lftq DESC LIMIT 1[0m
|
33112
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33113
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33114
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33115
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 13]]
|
33116
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1
|
33117
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819672131147541], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 13], ["rgt", 0.38197424892703863], ["rgtp", 89], ["rgtq", 233]]
|
33118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33119
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33120
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
|
33121
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 13 ORDER BY lftq DESC LIMIT 1[0m
|
33122
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33123
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33124
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33125
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 15]]
|
33126
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1
|
33127
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196618659987475], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 15], ["rgt", 0.3819672131147541], ["rgtp", 233], ["rgtq", 610]]
|
33128
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33129
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33130
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 15]]
|
33131
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 15 ORDER BY lftq DESC LIMIT 1[0m
|
33132
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33133
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33134
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33135
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 17]]
|
33136
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1
|
33137
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196603683329344], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 17], ["rgt", 0.38196618659987475], ["rgtp", 610], ["rgtq", 1597]]
|
33138
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33139
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33140
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 17]]
|
33141
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 17 ORDER BY lftq DESC LIMIT 1[0m
|
33142
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33145
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 19]]
|
33146
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1
|
33147
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601498264204], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 19], ["rgt", 0.38196603683329344], ["rgtp", 1597], ["rgtq", 4181]]
|
33148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33150
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 19]]
|
33151
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 19 ORDER BY lftq DESC LIMIT 1[0m
|
33152
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33153
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33154
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33155
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 21]]
|
33156
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1
|
33157
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601179467493], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 21], ["rgt", 0.38196601498264204], ["rgtp", 4181], ["rgtq", 10946]]
|
33158
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33159
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33160
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 21]]
|
33161
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 21 ORDER BY lftq DESC LIMIT 1[0m
|
33162
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33163
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33164
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33165
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 23]]
|
33166
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1
|
33167
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819660113295568], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 23], ["rgt", 0.38196601179467493], ["rgtp", 10946], ["rgtq", 28657]]
|
33168
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33169
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33170
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 23]]
|
33171
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 23 ORDER BY lftq DESC LIMIT 1[0m
|
33172
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33173
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33174
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33175
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 25]]
|
33176
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1
|
33177
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.381966011261697], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 25], ["rgt", 0.3819660113295568], ["rgtp", 28657], ["rgtq", 75025]]
|
33178
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33179
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33180
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 25]]
|
33181
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 25 ORDER BY lftq DESC LIMIT 1[0m
|
33182
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33183
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33184
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33185
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 27]]
|
33186
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1
|
33187
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125179636], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 27], ["rgt", 0.381966011261697], ["rgtp", 75025], ["rgtq", 196418]]
|
33188
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33189
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33190
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 27]]
|
33191
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 27 ORDER BY lftq DESC LIMIT 1[0m
|
33192
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33193
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33194
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33195
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 29]]
|
33196
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1
|
33197
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819660112503519], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 29], ["rgt", 0.38196601125179636], ["rgtp", 196418], ["rgtq", 514229]]
|
33198
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33199
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33200
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 29]]
|
33201
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 29 ORDER BY lftq DESC LIMIT 1[0m
|
33202
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33203
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33204
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33205
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 31]]
|
33206
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1
|
33207
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819660112501411], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 31], ["rgt", 0.3819660112503519], ["rgtp", 514229], ["rgtq", 1346269]]
|
33208
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33209
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33210
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 31]]
|
33211
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 31 ORDER BY lftq DESC LIMIT 1[0m
|
33212
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33213
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33214
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33215
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 33]]
|
33216
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1
|
33217
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3819660112501104], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 33], ["rgt", 0.3819660112501411], ["rgtp", 1346269], ["rgtq", 3524578]]
|
33218
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33219
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33220
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 33]]
|
33221
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 33 ORDER BY lftq DESC LIMIT 1[0m
|
33222
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33223
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33225
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 35]]
|
33226
|
+
[1m[35mRegion Load (0.5ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1
|
33227
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010593], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 35], ["rgt", 0.3819660112501104], ["rgtp", 3524578], ["rgtq", 9227465]]
|
33228
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33229
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33230
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 35]]
|
33231
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 35 ORDER BY lftq DESC LIMIT 1[0m
|
33232
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33233
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33234
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33235
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 37]]
|
33236
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1
|
33237
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010526], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 37], ["rgt", 0.38196601125010593], ["rgtp", 9227465], ["rgtq", 24157817]]
|
33238
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33239
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33240
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 37]]
|
33241
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 37 ORDER BY lftq DESC LIMIT 1[0m
|
33242
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33243
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33245
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 39]]
|
33246
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1
|
33247
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 39], ["rgt", 0.38196601125010526], ["rgtp", 24157817], ["rgtq", 63245986]]
|
33248
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33249
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33250
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 39]]
|
33251
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 39 ORDER BY lftq DESC LIMIT 1[0m
|
33252
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33253
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33254
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33255
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 41]]
|
33256
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1
|
33257
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 41], ["rgt", 0.38196601125010515], ["rgtp", 63245986], ["rgtq", 165580141]]
|
33258
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33260
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 41]]
|
33261
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 41 ORDER BY lftq DESC LIMIT 1[0m
|
33262
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33264
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33265
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 43]]
|
33266
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1
|
33267
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.38196601125010515], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 43], ["rgt", 0.38196601125010515], ["rgtp", 165580141], ["rgtq", 433494437]]
|
33268
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33269
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33270
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 43]]
|
33271
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 43 ORDER BY lftq DESC LIMIT 1[0m
|
33272
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33273
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33274
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33276
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33277
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33278
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33279
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33280
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33281
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33282
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33283
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33284
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33285
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33286
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33287
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
33288
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
33289
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33290
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33291
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33292
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
33293
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
33294
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33295
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33296
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33297
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
33298
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
33299
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
33300
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33301
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
33302
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
|
33303
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
33304
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33305
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
33306
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
33307
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
33308
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33309
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33310
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
33311
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 5]]
|
33312
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1
|
33313
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "regions" SET rgtp = 0 * rgtp + 1 * rgtq, rgtq = -1 * rgtp + 3 * rgtq, rgt = 1.000000000000000000000000000000 * (0 * rgtp + 1 * rgtq) / (-1 * rgtp + 3 * rgtq), lftp = 0 * lftp + 1 * lftq, lftq = -1 * lftp + 3 * lftq, lft = 1.000000000000000000000000000000 * (0 * lftp + 1 * lftq) / (-1 * lftp + 3 * lftq) WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
|
33314
|
+
"regions".lft BETWEEN 0.5 AND 1.0
|
33315
|
+
)[0m
|
33316
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "region_id" = 5, "lftp" = 2, "lftq" = 5, "rgtq" = 2, "lft" = 0.4, "rgt" = 0.5 WHERE "regions"."id" = 2
|
33317
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33318
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
|
33319
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
33320
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33321
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33323
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "earth"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33324
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33325
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33326
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33327
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33328
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33329
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33330
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33331
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
33332
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
33333
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "america"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
33334
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33336
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 3]]
|
33337
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 ORDER BY lftq DESC LIMIT 1[0m
|
33338
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33339
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33340
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33341
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
33342
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 ORDER BY lftq DESC LIMIT 1
|
33343
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.42857142857142855], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 4], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
33344
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33345
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33346
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
|
33347
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 5 ORDER BY lftq DESC LIMIT 1[0m
|
33348
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33350
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33351
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 5]]
|
33352
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
33353
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
33354
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "regions" SET rgtp = 3 * rgtp + -1 * rgtq, rgtq = 1 * rgtp + 0 * rgtq, rgt = 1.000000000000000000000000000000 * (3 * rgtp + -1 * rgtq) / (1 * rgtp + 0 * rgtq), lftp = 3 * lftp + -1 * lftq, lftq = 1 * lftp + 0 * lftq, lft = 1.000000000000000000000000000000 * (3 * lftp + -1 * lftq) / (1 * lftp + 0 * lftq) WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
|
33355
|
+
"regions".lft BETWEEN 0.42857142857142855 AND 0.5
|
33356
|
+
)
|
33357
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "regions" SET "region_id" = 2, "lftp" = 2, "lftq" = 3, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 5[0m
|
33358
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33359
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 6]]
|
33360
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 3 < "regions".lftp AND
|
33361
|
+
"regions".lft BETWEEN 0.75 AND 1.0
|
33362
|
+
)
|
33363
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 5]]
|
33364
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
|
33365
|
+
"regions".lft BETWEEN 0.6666666666666666 AND 1.0
|
33366
|
+
)
|
33367
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
33368
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
|
33369
|
+
"regions".lft BETWEEN 0.5 AND 1.0
|
33370
|
+
)
|
33371
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 3]]
|
33372
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 1 < "regions".lftp AND
|
33373
|
+
"regions".lft BETWEEN 0.3333333333333333 AND 0.5
|
33374
|
+
)
|
33375
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
33376
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
|
33377
|
+
"regions".lft BETWEEN 0.4 AND 0.5
|
33378
|
+
)
|
33379
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
33380
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
|
33381
|
+
"regions".lft BETWEEN 0.0 AND 1.0
|
33382
|
+
)
|
33383
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33384
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33385
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33386
|
+
[1m[35mRegion Load (0.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33387
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33388
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33389
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33390
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33391
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33392
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33393
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33394
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33395
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33396
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33397
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33398
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33399
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33400
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33401
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33403
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
33404
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33405
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "regions" SET rgtp = 2 * rgtp + -1 * rgtq, rgtq = 7 * rgtp + -3 * rgtq, rgt = 1.000000000000000000000000000000 * (2 * rgtp + -1 * rgtq) / (7 * rgtp + -3 * rgtq), lftp = 2 * lftp + -1 * lftq, lftq = 7 * lftp + -3 * lftq, lft = 1.000000000000000000000000000000 * (2 * lftp + -1 * lftq) / (7 * lftp + -3 * lftq) WHERE "regions"."fiction" = 'f' AND ( 2 < "regions".lftp AND
|
33406
|
+
"regions".lft BETWEEN 0.6666666666666666 AND 1.0
|
33407
|
+
)[0m
|
33408
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "region_id" = NULL, "lftp" = 1, "lftq" = 5, "rgtq" = 4, "lft" = 0.2, "rgt" = 0.25 WHERE "regions"."id" = 2
|
33409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33410
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33411
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33412
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33413
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33414
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33415
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33416
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33417
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
33418
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
33419
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33420
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33421
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33422
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33423
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33424
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33425
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33426
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33427
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 2]]
|
33428
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1
|
33429
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.75], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 2], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33430
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33431
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33432
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 2]]
|
33433
|
+
[1m[36mRegion Load (0.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 ORDER BY lftq DESC LIMIT 1[0m
|
33434
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33435
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33436
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
33437
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33438
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33439
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33440
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33441
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33442
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33443
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33444
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33445
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33446
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33447
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33448
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33449
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33450
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33451
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33452
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33453
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33454
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33455
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33456
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
|
33457
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
33458
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
|
33459
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33460
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "lftp" = 1, "lftq" = 2, "rgtp" = 1, "rgtq" = 1, "lft" = 0.5, "rgt" = 1.0 WHERE "regions"."id" = 1
|
33461
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33462
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
|
33463
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = 1 AND ("regions".lftq > 0) LIMIT 1[0m
|
33464
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33465
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1[0m
|
33466
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33467
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "regions" SET "lftp" = 2, "lftq" = 3, "rgtp" = 1, "rgtq" = 1, "lft" = 0.6666666666666666, "rgt" = 1.0 WHERE "regions"."id" = 2[0m
|
33468
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33469
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 2 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
33470
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1
|
33471
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33472
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "lftp" = 1, "lftq" = 3, "rgtp" = 1, "rgtq" = 2, "lft" = 0.3333333333333333, "rgt" = 0.5 WHERE "regions"."id" = 3
|
33473
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33474
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 3 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000
|
33475
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL AND ("regions".lftq > 0) ORDER BY lftq DESC LIMIT 1[0m
|
33476
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33477
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "regions" SET "lftp" = 1, "lftq" = 4, "rgtp" = 1, "rgtq" = 3, "lft" = 0.25, "rgt" = 0.3333333333333333 WHERE "regions"."id" = 4[0m
|
33478
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33479
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 4 AND ("regions"."id" >= 0) ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
33480
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
33481
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33482
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33483
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33484
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33485
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33486
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33487
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33488
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33489
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33490
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33491
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33492
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33493
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33494
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33495
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33496
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33497
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33498
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33499
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33500
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33501
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 4]]
|
33502
|
+
[1m[35m (0.1ms)[0m UPDATE "regions" SET "name" = 'USA' WHERE "regions"."id" = 4
|
33503
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33504
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33505
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33506
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33507
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33508
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33509
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33511
|
+
[1m[36mRegion Load (0.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1[0m [["id", 1]]
|
33512
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1
|
33513
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.6666666666666666], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33514
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33515
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33516
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33517
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", true], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33518
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33519
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
33520
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND ( 1 < "regions".lftp AND
|
33521
|
+
"regions".lft BETWEEN 0.5 AND 1.0
|
33522
|
+
)
|
33523
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33524
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33525
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33526
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33527
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33528
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33529
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33530
|
+
[1m[35mRegion Load (0.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
|
33531
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 1 ORDER BY lftq DESC LIMIT 1[0m
|
33532
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33533
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33534
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33535
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33536
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33537
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33538
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33539
|
+
[1m[36mRegion Load (0.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
33540
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
33541
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33542
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
33543
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33544
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33545
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33546
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33547
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "1"], ["region_id", nil], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
|
33548
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33549
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33550
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33551
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.3333333333333333], ["lftp", 1], ["lftq", 3], ["name", "2"], ["region_id", nil], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
|
33552
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33553
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33554
|
+
[1m[35mRegion Load (0.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
33555
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["fiction", false], ["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "3"], ["region_id", nil], ["rgt", 0.3333333333333333], ["rgtp", 1], ["rgtq", 3]]
|
33556
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33557
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|