switchman 1.2.40 → 1.2.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/active_record/attribute_methods.rb +9 -0
- data/lib/switchman/active_record/connection_pool.rb +3 -1
- data/lib/switchman/database_server.rb +2 -2
- data/lib/switchman/version.rb +1 -1
- data/spec/dummy/log/test.log +1118 -0
- data/spec/models/shard_spec.rb +1 -0
- metadata +3 -39
- data/spec/dummy/tmp/cache/34A/EC0/shard%2F811 +0 -0
- data/spec/dummy/tmp/cache/34B/EE0/shard%2F740 +0 -0
- data/spec/dummy/tmp/cache/34D/EF0/shard%2F814 +0 -0
- data/spec/dummy/tmp/cache/34F/F20/shard%2F744 +0 -0
- data/spec/dummy/tmp/cache/34F/F30/shard%2F753 +0 -0
- data/spec/dummy/tmp/cache/34F/F40/shard%2F762 +0 -0
- data/spec/dummy/tmp/cache/34F/F60/shard%2F780 +0 -0
- data/spec/dummy/tmp/cache/350/F40/shard%2F754 +0 -0
- data/spec/dummy/tmp/cache/350/F50/shard%2F763 +0 -0
- data/spec/dummy/tmp/cache/350/F60/shard%2F772 +0 -0
- data/spec/dummy/tmp/cache/352/F40/shard%2F738 +0 -0
- data/spec/dummy/tmp/cache/352/F50/shard%2F747 +0 -0
- data/spec/dummy/tmp/cache/352/F60/shard%2F756 +0 -0
- data/spec/dummy/tmp/cache/353/F70/shard%2F757 +0 -0
- data/spec/dummy/tmp/cache/353/F90/shard%2F775 +0 -0
- data/spec/dummy/tmp/cache/354/FA0/shard%2F776 +0 -0
- data/spec/dummy/tmp/cache/355/F90/shard%2F759 +0 -1
- data/spec/dummy/tmp/cache/357/FF0/shard%2F797 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf24c432b69a19e8427cd07d4358d6c58bc5b474
|
4
|
+
data.tar.gz: 1b8fad2c217f77295ed968601032b7f0ec4026f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78675de957f350f00c51dadbf110a604d7d4566dab36ecc6c4823c18089e29923493b9270e7097fab868818ead2afbf11a0fabda25626ae12ca91dd301d49ec4
|
7
|
+
data.tar.gz: 2e7db4fa882c02156d16fe36916ed94d2f52f2fa190c4e723496d64a55251890c0570ba2f0ccf9cf00acde54229307b9d9180d8d0d6b1745d91cf34aeafaf63b
|
@@ -117,6 +117,15 @@ module Switchman
|
|
117
117
|
klass.extend(ClassMethods)
|
118
118
|
klass.attribute_method_prefix "global_", "local_", "original_"
|
119
119
|
end
|
120
|
+
|
121
|
+
unless ::Rails.version < '4'
|
122
|
+
# ensure that we're using the sharded attribute method
|
123
|
+
# and not the silly one in AR::AttributeMethods::PrimaryKey
|
124
|
+
def id
|
125
|
+
self.class.define_attribute_methods
|
126
|
+
super
|
127
|
+
end
|
128
|
+
end
|
120
129
|
end
|
121
130
|
end
|
122
131
|
end
|
@@ -68,7 +68,9 @@ module Switchman
|
|
68
68
|
when 'MySQL', 'Mysql2'
|
69
69
|
conn.execute("USE #{spec.config[:database]}")
|
70
70
|
when 'PostgreSQL'
|
71
|
-
conn.schema_search_path
|
71
|
+
if conn.schema_search_path != spec.config[:schema_search_path]
|
72
|
+
conn.schema_search_path = spec.config[:schema_search_path]
|
73
|
+
end
|
72
74
|
when 'SQLite'
|
73
75
|
# This is an artifact of the adapter modifying the path to be an absolute path when it is instantiated; just let it slide
|
74
76
|
else
|
@@ -205,8 +205,8 @@ module Switchman
|
|
205
205
|
old_verbose = ::ActiveRecord::Migration.verbose
|
206
206
|
::ActiveRecord::Migration.verbose = false
|
207
207
|
|
208
|
-
reset_column_information
|
209
208
|
unless create_schema == false
|
209
|
+
reset_column_information
|
210
210
|
migrate = -> { ::ActiveRecord::Migrator.migrate(::ActiveRecord::Migrator.migrations_paths) }
|
211
211
|
if ::ActiveRecord::Base.connection.supports_ddl_transactions?
|
212
212
|
::ActiveRecord::Base.connection.transaction(requires_new: true, &migrate)
|
@@ -226,7 +226,7 @@ module Switchman
|
|
226
226
|
rescue
|
227
227
|
shard.destroy
|
228
228
|
shard.drop_database if shard.name == name rescue nil
|
229
|
-
reset_column_information rescue nil
|
229
|
+
reset_column_information unless create_schema == false rescue nil
|
230
230
|
raise
|
231
231
|
end
|
232
232
|
end
|
data/lib/switchman/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -940153,3 +940153,1121 @@ LINE 1: SELECT COUNT(*) FROM "users"
|
|
940153
940153
|
[1m[35m (0.1ms)[0m ROLLBACK [test:714 master]
|
940154
940154
|
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:713 master]
|
940155
940155
|
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:713 master]
|
940156
|
+
[1m[36m (1.9ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940157
|
+
[1m[35mSwitchman::Shard Load (25.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940158
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940159
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940160
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940161
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940162
|
+
[1m[36mSQL (12.0ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940163
|
+
[1m[35m (6.2ms)[0m COMMIT
|
940164
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940165
|
+
[1m[35mSwitchman::Shard Load (18.8ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940166
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940167
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940168
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940169
|
+
[1m[35m (0.4ms)[0m COMMIT
|
940170
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940171
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940172
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
940173
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "switchman_shards" [test:736 master]
|
940174
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:736 master]
|
940175
|
+
[1m[35m (0.1ms)[0m BEGIN [test:736 master]
|
940176
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:736 master]
|
940177
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 736]] [test:736 master]
|
940178
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:736 master]
|
940179
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:736 master]
|
940180
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:736 master]
|
940181
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 737], ["name", "shard1"]] [test:736 master]
|
940182
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:736 master]
|
940183
|
+
[1m[35m (0.1ms)[0m BEGIN [test:736 master]
|
940184
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 738], ["name", "shard2"]] [test:736 master]
|
940185
|
+
[1m[35m (0.3ms)[0m COMMIT [test:736 master]
|
940186
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:736 master]
|
940187
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:736 master]
|
940188
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 737]] [test:736 master]
|
940189
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 738]] [test:736 master]
|
940190
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:738 master]
|
940191
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:736 master]
|
940192
|
+
[1m[36mSQL (24.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 14:37:28.351249"], ["updated_at", "2015-09-08 14:37:28.351249"]] [test:736 master]
|
940193
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [test:736 master]
|
940194
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [1:738 master]
|
940195
|
+
[1m[35m (0.3ms)[0m ROLLBACK [test:736 master]
|
940196
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:736 master]
|
940197
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:736 master]
|
940198
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940199
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940200
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940201
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940202
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940203
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940204
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940205
|
+
[1m[35m (6.3ms)[0m COMMIT
|
940206
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940207
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940208
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940209
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940210
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940211
|
+
[1m[35m (6.2ms)[0m COMMIT
|
940212
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940213
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940214
|
+
[1m[36m (4.7ms)[0m [1mCOMMIT[0m
|
940215
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:739 master]
|
940216
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:739 master]
|
940217
|
+
[1m[35m (0.1ms)[0m BEGIN [test:739 master]
|
940218
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:739 master]
|
940219
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 739]] [test:739 master]
|
940220
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [test:739 master]
|
940221
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:739 master]
|
940222
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:739 master]
|
940223
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 740], ["name", "shard1"]] [test:739 master]
|
940224
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [test:739 master]
|
940225
|
+
[1m[35m (0.1ms)[0m BEGIN [test:739 master]
|
940226
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 741], ["name", "shard2"]] [test:739 master]
|
940227
|
+
[1m[35m (0.2ms)[0m COMMIT [test:739 master]
|
940228
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:739 master]
|
940229
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:739 master]
|
940230
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 740]] [test:739 master]
|
940231
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 741]] [test:739 master]
|
940232
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [1:741 master]
|
940233
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [test:739 master]
|
940234
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 14:38:43.065751"], ["updated_at", "2015-09-08 14:38:43.065751"]] [test:739 master]
|
940235
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [test:739 master]
|
940236
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [1:741 master]
|
940237
|
+
[1m[35m (0.1ms)[0m ROLLBACK [test:739 master]
|
940238
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:739 master]
|
940239
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:739 master]
|
940240
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940241
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940242
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940243
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940244
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940245
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940246
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940247
|
+
[1m[35m (8.2ms)[0m COMMIT
|
940248
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940249
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940250
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940251
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940252
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940253
|
+
[1m[35m (9.2ms)[0m COMMIT
|
940254
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
940255
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940256
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
940257
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:742 master]
|
940258
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:742 master]
|
940259
|
+
[1m[35m (0.1ms)[0m BEGIN [test:742 master]
|
940260
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:742 master]
|
940261
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 742]] [test:742 master]
|
940262
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:742 master]
|
940263
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:742 master]
|
940264
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:742 master]
|
940265
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 743], ["name", "shard1"]] [test:742 master]
|
940266
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:742 master]
|
940267
|
+
[1m[35m (0.1ms)[0m BEGIN [test:742 master]
|
940268
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 744], ["name", "shard2"]] [test:742 master]
|
940269
|
+
[1m[35m (0.3ms)[0m COMMIT [test:742 master]
|
940270
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:742 master]
|
940271
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:742 master]
|
940272
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 743]] [test:742 master]
|
940273
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 744]] [test:742 master]
|
940274
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:744 master]
|
940275
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:742 master]
|
940276
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 14:39:07.027425"], ["updated_at", "2015-09-08 14:39:07.027425"]] [test:742 master]
|
940277
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:742 master]
|
940278
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [1:744 master]
|
940279
|
+
[1m[35m (0.1ms)[0m ROLLBACK [test:742 master]
|
940280
|
+
[1m[36mSQL (11.3ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:742 master]
|
940281
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:742 master]
|
940282
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940283
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940284
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940285
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940286
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940287
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940288
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940289
|
+
[1m[35m (6.1ms)[0m COMMIT
|
940290
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940291
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940292
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940293
|
+
[1m[35m (0.3ms)[0m BEGIN
|
940294
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940295
|
+
[1m[35m (6.2ms)[0m COMMIT
|
940296
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940297
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940298
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
940299
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [test:745 master]
|
940300
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:745 master]
|
940301
|
+
[1m[35m (0.1ms)[0m BEGIN [test:745 master]
|
940302
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:745 master]
|
940303
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 745]] [test:745 master]
|
940304
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:745 master]
|
940305
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:745 master]
|
940306
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:745 master]
|
940307
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 746], ["name", "shard1"]] [test:745 master]
|
940308
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:745 master]
|
940309
|
+
[1m[35m (0.1ms)[0m BEGIN [test:745 master]
|
940310
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 747], ["name", "shard2"]] [test:745 master]
|
940311
|
+
[1m[35m (0.3ms)[0m COMMIT [test:745 master]
|
940312
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:745 master]
|
940313
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:745 master]
|
940314
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 746]] [test:745 master]
|
940315
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 747]] [test:745 master]
|
940316
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:747 master]
|
940317
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:745 master]
|
940318
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 14:40:39.286059"], ["updated_at", "2015-09-08 14:40:39.286059"]] [test:745 master]
|
940319
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:745 master]
|
940320
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [1:747 master]
|
940321
|
+
[1m[35m (0.3ms)[0m ROLLBACK [test:745 master]
|
940322
|
+
[1m[36mSQL (14.9ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:745 master]
|
940323
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:745 master]
|
940324
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940325
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940326
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940327
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940328
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940329
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940330
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940331
|
+
[1m[35m (1.1ms)[0m COMMIT
|
940332
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940333
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940334
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940335
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940336
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940337
|
+
[1m[35m (0.4ms)[0m COMMIT
|
940338
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940339
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940340
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
940341
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:748 master]
|
940342
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:748 master]
|
940343
|
+
[1m[35m (0.1ms)[0m BEGIN [test:748 master]
|
940344
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:748 master]
|
940345
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 748]] [test:748 master]
|
940346
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:748 master]
|
940347
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:748 master]
|
940348
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:748 master]
|
940349
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 749], ["name", "shard1"]] [test:748 master]
|
940350
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:748 master]
|
940351
|
+
[1m[35m (0.2ms)[0m BEGIN [test:748 master]
|
940352
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 750], ["name", "shard2"]] [test:748 master]
|
940353
|
+
[1m[35m (0.4ms)[0m COMMIT [test:748 master]
|
940354
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:748 master]
|
940355
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:748 master]
|
940356
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 749]] [test:748 master]
|
940357
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [test:748 master]
|
940358
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:750 master]
|
940359
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:748 master]
|
940360
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 14:41:06.623207"], ["updated_at", "2015-09-08 14:41:06.623207"]] [test:748 master]
|
940361
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [test:748 master]
|
940362
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [1:750 master]
|
940363
|
+
[1m[35m (0.2ms)[0m ROLLBACK [test:748 master]
|
940364
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:748 master]
|
940365
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:748 master]
|
940366
|
+
[1m[36m (0.6ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940367
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940368
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940369
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940370
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940371
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940372
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940373
|
+
[1m[35m (6.4ms)[0m COMMIT
|
940374
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940375
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940376
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940377
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940378
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940379
|
+
[1m[35m (6.1ms)[0m COMMIT
|
940380
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940381
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940382
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
940383
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:751 master]
|
940384
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:751 master]
|
940385
|
+
[1m[35m (0.2ms)[0m BEGIN [test:751 master]
|
940386
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:751 master]
|
940387
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 751]] [test:751 master]
|
940388
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:751 master]
|
940389
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:751 master]
|
940390
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:751 master]
|
940391
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 752], ["name", "shard1"]] [test:751 master]
|
940392
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [test:751 master]
|
940393
|
+
[1m[35m (0.1ms)[0m BEGIN [test:751 master]
|
940394
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 753], ["name", "shard2"]] [test:751 master]
|
940395
|
+
[1m[35m (0.3ms)[0m COMMIT [test:751 master]
|
940396
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:751 master]
|
940397
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:751 master]
|
940398
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 752]] [test:751 master]
|
940399
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 753]] [test:751 master]
|
940400
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:753 master]
|
940401
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [test:751 master]
|
940402
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 14:42:30.180327"], ["updated_at", "2015-09-08 14:42:30.180327"]] [test:751 master]
|
940403
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:751 master]
|
940404
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [1:753 master]
|
940405
|
+
[1m[35m (0.1ms)[0m ROLLBACK [test:751 master]
|
940406
|
+
[1m[36mSQL (11.0ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:751 master]
|
940407
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:751 master]
|
940408
|
+
[1m[36m (0.6ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940409
|
+
[1m[35mSwitchman::Shard Load (0.8ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940410
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940411
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940412
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940413
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940414
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940415
|
+
[1m[35m (6.2ms)[0m COMMIT
|
940416
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940417
|
+
[1m[35mSwitchman::Shard Load (0.9ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940418
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940419
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940420
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940421
|
+
[1m[35m (6.0ms)[0m COMMIT
|
940422
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940423
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940424
|
+
[1m[36m (5.5ms)[0m [1mCOMMIT[0m
|
940425
|
+
[1m[35mSQL (11.9ms)[0m DELETE FROM "switchman_shards" [test:754 master]
|
940426
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:754 master]
|
940427
|
+
[1m[35m (0.2ms)[0m BEGIN [test:754 master]
|
940428
|
+
[1m[36mSwitchman::Shard Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:754 master]
|
940429
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 754]] [test:754 master]
|
940430
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:754 master]
|
940431
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:754 master]
|
940432
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:754 master]
|
940433
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 755], ["name", "shard1"]] [test:754 master]
|
940434
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:754 master]
|
940435
|
+
[1m[35m (0.1ms)[0m BEGIN [test:754 master]
|
940436
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 756], ["name", "shard2"]] [test:754 master]
|
940437
|
+
[1m[35m (0.4ms)[0m COMMIT [test:754 master]
|
940438
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:754 master]
|
940439
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:754 master]
|
940440
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 755]] [test:754 master]
|
940441
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 756]] [test:754 master]
|
940442
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [1:756 master]
|
940443
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:754 master]
|
940444
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [test:754 master]
|
940445
|
+
[1m[35m (0.2ms)[0m ROLLBACK [1:756 master]
|
940446
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:754 master]
|
940447
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "switchman_shards" [test:754 master]
|
940448
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:754 master]
|
940449
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940450
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940451
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940452
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940453
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940454
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940455
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940456
|
+
[1m[35m (7.3ms)[0m COMMIT
|
940457
|
+
[1m[36mSwitchman::Shard Load (0.9ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940458
|
+
[1m[35mSwitchman::Shard Load (0.8ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940459
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940460
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940461
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940462
|
+
[1m[35m (9.9ms)[0m COMMIT
|
940463
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940464
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940465
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
940466
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [test:757 master]
|
940467
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:757 master]
|
940468
|
+
[1m[35m (0.1ms)[0m BEGIN [test:757 master]
|
940469
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:757 master]
|
940470
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 757]] [test:757 master]
|
940471
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [test:757 master]
|
940472
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:757 master]
|
940473
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:757 master]
|
940474
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 758], ["name", "shard1"]] [test:757 master]
|
940475
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:757 master]
|
940476
|
+
[1m[35m (0.1ms)[0m BEGIN [test:757 master]
|
940477
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 759], ["name", "shard2"]] [test:757 master]
|
940478
|
+
[1m[35m (0.3ms)[0m COMMIT [test:757 master]
|
940479
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:757 master]
|
940480
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:757 master]
|
940481
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 758]] [test:757 master]
|
940482
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 759]] [test:757 master]
|
940483
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:759 master]
|
940484
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:757 master]
|
940485
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:13:33.458940"], ["updated_at", "2015-09-08 15:13:33.458940"]] [test:757 master]
|
940486
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:757 master]
|
940487
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1219]] [test:757 master]
|
940488
|
+
[1m[35m (0.1ms)[0m ROLLBACK [1:759 master]
|
940489
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [test:757 master]
|
940490
|
+
[1m[35mSQL (11.4ms)[0m DELETE FROM "switchman_shards" [test:757 master]
|
940491
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:757 master]
|
940492
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940493
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940494
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940495
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940496
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940497
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940498
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940499
|
+
[1m[35m (5.7ms)[0m COMMIT
|
940500
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940501
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940502
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940503
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940504
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940505
|
+
[1m[35m (6.2ms)[0m COMMIT
|
940506
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940507
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940508
|
+
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|
940509
|
+
[1m[35mSQL (6.2ms)[0m DELETE FROM "switchman_shards" [test:760 master]
|
940510
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:760 master]
|
940511
|
+
[1m[35m (0.2ms)[0m BEGIN [test:760 master]
|
940512
|
+
[1m[36mSwitchman::Shard Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:760 master]
|
940513
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 760]] [test:760 master]
|
940514
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m [test:760 master]
|
940515
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:760 master]
|
940516
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:760 master]
|
940517
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 761], ["name", "shard1"]] [test:760 master]
|
940518
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:760 master]
|
940519
|
+
[1m[35m (0.1ms)[0m BEGIN [test:760 master]
|
940520
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 762], ["name", "shard2"]] [test:760 master]
|
940521
|
+
[1m[35m (0.4ms)[0m COMMIT [test:760 master]
|
940522
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:760 master]
|
940523
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:760 master]
|
940524
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 761]] [test:760 master]
|
940525
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 762]] [test:760 master]
|
940526
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [1:762 master]
|
940527
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [test:760 master]
|
940528
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:14:37.614619"], ["updated_at", "2015-09-08 15:14:37.614619"]] [test:760 master]
|
940529
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:760 master]
|
940530
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1220]] [test:760 master]
|
940531
|
+
[1m[35m (0.1ms)[0m ROLLBACK [1:762 master]
|
940532
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:760 master]
|
940533
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:760 master]
|
940534
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:760 master]
|
940535
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940536
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940537
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940538
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940539
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940540
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940541
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940542
|
+
[1m[35m (6.3ms)[0m COMMIT
|
940543
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940544
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940545
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940546
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940547
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940548
|
+
[1m[35m (5.6ms)[0m COMMIT
|
940549
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940550
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940551
|
+
[1m[36m (5.0ms)[0m [1mCOMMIT[0m
|
940552
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:763 master]
|
940553
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:763 master]
|
940554
|
+
[1m[35m (0.2ms)[0m BEGIN [test:763 master]
|
940555
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:763 master]
|
940556
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 763]] [test:763 master]
|
940557
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:763 master]
|
940558
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:763 master]
|
940559
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:763 master]
|
940560
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 764], ["name", "shard1"]] [test:763 master]
|
940561
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:763 master]
|
940562
|
+
[1m[35m (0.1ms)[0m BEGIN [test:763 master]
|
940563
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 765], ["name", "shard2"]] [test:763 master]
|
940564
|
+
[1m[35m (0.3ms)[0m COMMIT [test:763 master]
|
940565
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:763 master]
|
940566
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:763 master]
|
940567
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 764]] [test:763 master]
|
940568
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 765]] [test:763 master]
|
940569
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:765 master]
|
940570
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:763 master]
|
940571
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:15:13.526112"], ["updated_at", "2015-09-08 15:15:13.526112"]] [test:763 master]
|
940572
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:763 master]
|
940573
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1221]] [test:763 master]
|
940574
|
+
[1m[35m (0.2ms)[0m ROLLBACK [1:765 master]
|
940575
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:763 master]
|
940576
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "switchman_shards" [test:763 master]
|
940577
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:763 master]
|
940578
|
+
[1m[36m (0.7ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940579
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940580
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940581
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940582
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940583
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940584
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940585
|
+
[1m[35m (6.4ms)[0m COMMIT
|
940586
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940587
|
+
[1m[35mSwitchman::Shard Load (1.0ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940588
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940589
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940590
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940591
|
+
[1m[35m (16.0ms)[0m COMMIT
|
940592
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940593
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940594
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
940595
|
+
[1m[35mSQL (6.1ms)[0m DELETE FROM "switchman_shards" [test:766 master]
|
940596
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:766 master]
|
940597
|
+
[1m[35m (0.3ms)[0m BEGIN [test:766 master]
|
940598
|
+
[1m[36mSwitchman::Shard Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:766 master]
|
940599
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 766]] [test:766 master]
|
940600
|
+
[1m[36m (10.7ms)[0m [1mCOMMIT[0m [test:766 master]
|
940601
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:766 master]
|
940602
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:766 master]
|
940603
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 767], ["name", "shard1"]] [test:766 master]
|
940604
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m [test:766 master]
|
940605
|
+
[1m[35m (0.2ms)[0m BEGIN [test:766 master]
|
940606
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 768], ["name", "shard2"]] [test:766 master]
|
940607
|
+
[1m[35m (0.4ms)[0m COMMIT [test:766 master]
|
940608
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:766 master]
|
940609
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:766 master]
|
940610
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 767]] [test:766 master]
|
940611
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 768]] [test:766 master]
|
940612
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:768 master]
|
940613
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:766 master]
|
940614
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:15:33.045955"], ["updated_at", "2015-09-08 15:15:33.045955"]] [test:766 master]
|
940615
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [test:766 master]
|
940616
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1222]] [test:766 master]
|
940617
|
+
[1m[35m (0.2ms)[0m ROLLBACK [1:768 master]
|
940618
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:766 master]
|
940619
|
+
[1m[35mSQL (10.3ms)[0m DELETE FROM "switchman_shards" [test:766 master]
|
940620
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:766 master]
|
940621
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940622
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940623
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940624
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940625
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940626
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940627
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940628
|
+
[1m[35m (7.6ms)[0m COMMIT
|
940629
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940630
|
+
[1m[35mSwitchman::Shard Load (0.8ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940631
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940632
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940633
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940634
|
+
[1m[35m (10.7ms)[0m COMMIT
|
940635
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940636
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940637
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
940638
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:769 master]
|
940639
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:769 master]
|
940640
|
+
[1m[35m (0.1ms)[0m BEGIN [test:769 master]
|
940641
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:769 master]
|
940642
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 769]] [test:769 master]
|
940643
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:769 master]
|
940644
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:769 master]
|
940645
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:769 master]
|
940646
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 770], ["name", "shard1"]] [test:769 master]
|
940647
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:769 master]
|
940648
|
+
[1m[35m (0.1ms)[0m BEGIN [test:769 master]
|
940649
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 771], ["name", "shard2"]] [test:769 master]
|
940650
|
+
[1m[35m (0.2ms)[0m COMMIT [test:769 master]
|
940651
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:769 master]
|
940652
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:769 master]
|
940653
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 770]] [test:769 master]
|
940654
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 771]] [test:769 master]
|
940655
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:771 master]
|
940656
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:769 master]
|
940657
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:16:09.313011"], ["updated_at", "2015-09-08 15:16:09.313011"]] [test:769 master]
|
940658
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:769 master]
|
940659
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [1:771 master]
|
940660
|
+
[1m[35m (0.2ms)[0m ROLLBACK [test:769 master]
|
940661
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:769 master]
|
940662
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:769 master]
|
940663
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940664
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940665
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940666
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940667
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940668
|
+
[1m[35mSwitchman::Shard Exists (0.5ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940669
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940670
|
+
[1m[35m (5.8ms)[0m COMMIT
|
940671
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940672
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940673
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940674
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940675
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940676
|
+
[1m[35m (5.9ms)[0m COMMIT
|
940677
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940678
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940679
|
+
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
|
940680
|
+
[1m[35mSQL (6.3ms)[0m DELETE FROM "switchman_shards" [test:772 master]
|
940681
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:772 master]
|
940682
|
+
[1m[35m (0.2ms)[0m BEGIN [test:772 master]
|
940683
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:772 master]
|
940684
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 772]] [test:772 master]
|
940685
|
+
[1m[36m (6.4ms)[0m [1mCOMMIT[0m [test:772 master]
|
940686
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:772 master]
|
940687
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:772 master]
|
940688
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 773], ["name", "shard1"]] [test:772 master]
|
940689
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m [test:772 master]
|
940690
|
+
[1m[35m (0.2ms)[0m BEGIN [test:772 master]
|
940691
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 774], ["name", "shard2"]] [test:772 master]
|
940692
|
+
[1m[35m (0.4ms)[0m COMMIT [test:772 master]
|
940693
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:772 master]
|
940694
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:772 master]
|
940695
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 773]] [test:772 master]
|
940696
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 774]] [test:772 master]
|
940697
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:774 master]
|
940698
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:772 master]
|
940699
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:21:06.931969"], ["updated_at", "2015-09-08 15:21:06.931969"]] [test:772 master]
|
940700
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:772 master]
|
940701
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [1:774 master]
|
940702
|
+
[1m[35m (0.2ms)[0m ROLLBACK [test:772 master]
|
940703
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:772 master]
|
940704
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:772 master]
|
940705
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940706
|
+
[1m[35mSwitchman::Shard Load (0.8ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940707
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940708
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940709
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940710
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940711
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940712
|
+
[1m[35m (9.1ms)[0m COMMIT
|
940713
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940714
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940715
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940716
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940717
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940718
|
+
[1m[35m (10.2ms)[0m COMMIT
|
940719
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940720
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940721
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
940722
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:775 master]
|
940723
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:775 master]
|
940724
|
+
[1m[35m (0.1ms)[0m BEGIN [test:775 master]
|
940725
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:775 master]
|
940726
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 775]] [test:775 master]
|
940727
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [test:775 master]
|
940728
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:775 master]
|
940729
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:775 master]
|
940730
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 776], ["name", "shard1"]] [test:775 master]
|
940731
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:775 master]
|
940732
|
+
[1m[35m (0.1ms)[0m BEGIN [test:775 master]
|
940733
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 777], ["name", "shard2"]] [test:775 master]
|
940734
|
+
[1m[35m (0.2ms)[0m COMMIT [test:775 master]
|
940735
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:775 master]
|
940736
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:775 master]
|
940737
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 776]] [test:775 master]
|
940738
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 777]] [test:775 master]
|
940739
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:777 master]
|
940740
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:775 master]
|
940741
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:21:22.066403"], ["updated_at", "2015-09-08 15:21:22.066403"]] [test:775 master]
|
940742
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:775 master]
|
940743
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m [1:777 master]
|
940744
|
+
[1m[35m (0.2ms)[0m ROLLBACK [test:775 master]
|
940745
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:775 master]
|
940746
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:775 master]
|
940747
|
+
[1m[36m (0.3ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940748
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940749
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940750
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940751
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940752
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940753
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940754
|
+
[1m[35m (6.5ms)[0m COMMIT
|
940755
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940756
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940757
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940758
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940759
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940760
|
+
[1m[35m (6.3ms)[0m COMMIT
|
940761
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940762
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940763
|
+
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
|
940764
|
+
[1m[35mSQL (6.2ms)[0m DELETE FROM "switchman_shards" [test:778 master]
|
940765
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:778 master]
|
940766
|
+
[1m[35m (0.2ms)[0m BEGIN [test:778 master]
|
940767
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:778 master]
|
940768
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 778]] [test:778 master]
|
940769
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m [test:778 master]
|
940770
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:778 master]
|
940771
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:778 master]
|
940772
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 779], ["name", "shard1"]] [test:778 master]
|
940773
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:778 master]
|
940774
|
+
[1m[35m (0.1ms)[0m BEGIN [test:778 master]
|
940775
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 780], ["name", "shard2"]] [test:778 master]
|
940776
|
+
[1m[35m (0.3ms)[0m COMMIT [test:778 master]
|
940777
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [test:778 master]
|
940778
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:778 master]
|
940779
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 779]] [test:778 master]
|
940780
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 780]] [test:778 master]
|
940781
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [1:780 master]
|
940782
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [test:778 master]
|
940783
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:23:12.435293"], ["updated_at", "2015-09-08 15:23:12.435293"]] [test:778 master]
|
940784
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [test:778 master]
|
940785
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [1:780 master]
|
940786
|
+
[1m[35m (0.2ms)[0m ROLLBACK [test:778 master]
|
940787
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:778 master]
|
940788
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:778 master]
|
940789
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940790
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940791
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940792
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940793
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940794
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940795
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940796
|
+
[1m[35m (6.1ms)[0m COMMIT
|
940797
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940798
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940799
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940800
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940801
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940802
|
+
[1m[35m (6.3ms)[0m COMMIT
|
940803
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940804
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940805
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
940806
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:781 master]
|
940807
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:781 master]
|
940808
|
+
[1m[35m (0.1ms)[0m BEGIN [test:781 master]
|
940809
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:781 master]
|
940810
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 781]] [test:781 master]
|
940811
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:781 master]
|
940812
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:781 master]
|
940813
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:781 master]
|
940814
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 782], ["name", "shard1"]] [test:781 master]
|
940815
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:781 master]
|
940816
|
+
[1m[35m (0.1ms)[0m BEGIN [test:781 master]
|
940817
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 783], ["name", "shard2"]] [test:781 master]
|
940818
|
+
[1m[35m (0.3ms)[0m COMMIT [test:781 master]
|
940819
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:781 master]
|
940820
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:781 master]
|
940821
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 782]] [test:781 master]
|
940822
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 783]] [test:781 master]
|
940823
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [1:783 master]
|
940824
|
+
[1m[35m (0.1ms)[0m ROLLBACK [1:783 master]
|
940825
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:781 master]
|
940826
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "switchman_shards" [test:781 master]
|
940827
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:781 master]
|
940828
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940829
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940830
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940831
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940832
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940833
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940834
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940835
|
+
[1m[35m (0.9ms)[0m COMMIT
|
940836
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940837
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940838
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940839
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940840
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940841
|
+
[1m[35m (0.4ms)[0m COMMIT
|
940842
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940843
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940844
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
940845
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:784 master]
|
940846
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:784 master]
|
940847
|
+
[1m[35m (0.1ms)[0m BEGIN [test:784 master]
|
940848
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:784 master]
|
940849
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 784]] [test:784 master]
|
940850
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:784 master]
|
940851
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:784 master]
|
940852
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:784 master]
|
940853
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 785], ["name", "shard1"]] [test:784 master]
|
940854
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:784 master]
|
940855
|
+
[1m[35m (0.1ms)[0m BEGIN [test:784 master]
|
940856
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 786], ["name", "shard2"]] [test:784 master]
|
940857
|
+
[1m[35m (0.2ms)[0m COMMIT [test:784 master]
|
940858
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:784 master]
|
940859
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:784 master]
|
940860
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 785]] [test:784 master]
|
940861
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 786]] [test:784 master]
|
940862
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:786 master]
|
940863
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [test:784 master]
|
940864
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-09-08 15:24:22.816356"], ["updated_at", "2015-09-08 15:24:22.816356"]] [test:784 master]
|
940865
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [test:784 master]
|
940866
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [1:786 master]
|
940867
|
+
[1m[35m (0.2ms)[0m ROLLBACK [test:784 master]
|
940868
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:784 master]
|
940869
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:784 master]
|
940870
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940871
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940872
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940873
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940874
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940875
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940876
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940877
|
+
[1m[35m (6.0ms)[0m COMMIT
|
940878
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940879
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940880
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940881
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940882
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940883
|
+
[1m[35m (0.3ms)[0m COMMIT
|
940884
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940885
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940886
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
940887
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:787 master]
|
940888
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:787 master]
|
940889
|
+
[1m[35m (0.1ms)[0m BEGIN [test:787 master]
|
940890
|
+
[1m[36mSwitchman::Shard Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:787 master]
|
940891
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 787]] [test:787 master]
|
940892
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:787 master]
|
940893
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:787 master]
|
940894
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:787 master]
|
940895
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 788], ["name", "shard1"]] [test:787 master]
|
940896
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:787 master]
|
940897
|
+
[1m[35m (0.1ms)[0m BEGIN [test:787 master]
|
940898
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 789], ["name", "shard2"]] [test:787 master]
|
940899
|
+
[1m[35m (0.3ms)[0m COMMIT [test:787 master]
|
940900
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:787 master]
|
940901
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:787 master]
|
940902
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 788]] [test:787 master]
|
940903
|
+
[1m[35mSwitchman::Shard Load (0.1ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 789]] [test:787 master]
|
940904
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [1:789 master]
|
940905
|
+
[1m[35m (0.1ms)[0m ROLLBACK [1:789 master]
|
940906
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [test:787 master]
|
940907
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:787 master]
|
940908
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:787 master]
|
940909
|
+
[1m[36m (0.3ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940910
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940911
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940912
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940913
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940914
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940915
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940916
|
+
[1m[35m (0.8ms)[0m COMMIT
|
940917
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940918
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940919
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940920
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940921
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940922
|
+
[1m[35m (0.4ms)[0m COMMIT
|
940923
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940924
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940925
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
940926
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [test:790 master]
|
940927
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:790 master]
|
940928
|
+
[1m[35m (0.1ms)[0m BEGIN [test:790 master]
|
940929
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:790 master]
|
940930
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 790]] [test:790 master]
|
940931
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:790 master]
|
940932
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:790 master]
|
940933
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:790 master]
|
940934
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 791], ["name", "shard1"]] [test:790 master]
|
940935
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:790 master]
|
940936
|
+
[1m[35m (0.1ms)[0m BEGIN [test:790 master]
|
940937
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 792], ["name", "shard2"]] [test:790 master]
|
940938
|
+
[1m[35m (0.3ms)[0m COMMIT [test:790 master]
|
940939
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:790 master]
|
940940
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:790 master]
|
940941
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 791]] [test:790 master]
|
940942
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 792]] [test:790 master]
|
940943
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:792 master]
|
940944
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id" [test:790 master]
|
940945
|
+
PG::NotNullViolation: ERROR: null value in column "created_at" violates not-null constraint
|
940946
|
+
DETAIL: Failing row contains (1228, null, null, null, null, null, null).
|
940947
|
+
: INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
940948
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [1:792 master]
|
940949
|
+
[1m[35m (0.1ms)[0m ROLLBACK [test:790 master]
|
940950
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "switchman_shards"[0m [test:790 master]
|
940951
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:790 master]
|
940952
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940953
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940954
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940955
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940956
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940957
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940958
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940959
|
+
[1m[35m (7.2ms)[0m COMMIT
|
940960
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940961
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940962
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
940963
|
+
[1m[35m (0.1ms)[0m BEGIN
|
940964
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
940965
|
+
[1m[35m (11.0ms)[0m COMMIT
|
940966
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
940967
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
940968
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
940969
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:793 master]
|
940970
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:793 master]
|
940971
|
+
[1m[35m (0.1ms)[0m BEGIN [test:793 master]
|
940972
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:793 master]
|
940973
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 793]] [test:793 master]
|
940974
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:793 master]
|
940975
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:793 master]
|
940976
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:793 master]
|
940977
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 794], ["name", "shard1"]] [test:793 master]
|
940978
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:793 master]
|
940979
|
+
[1m[35m (0.1ms)[0m BEGIN [test:793 master]
|
940980
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 795], ["name", "shard2"]] [test:793 master]
|
940981
|
+
[1m[35m (0.3ms)[0m COMMIT [test:793 master]
|
940982
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:793 master]
|
940983
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:793 master]
|
940984
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 794]] [test:793 master]
|
940985
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 795]] [test:793 master]
|
940986
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:795 master]
|
940987
|
+
[1m[35m (0.1ms)[0m ROLLBACK [1:795 master]
|
940988
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m [test:793 master]
|
940989
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:793 master]
|
940990
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:793 master]
|
940991
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
940992
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940993
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
940994
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
940995
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940996
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
940997
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
940998
|
+
[1m[35m (6.1ms)[0m COMMIT
|
940999
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941000
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941001
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941002
|
+
[1m[35m (0.1ms)[0m BEGIN
|
941003
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
941004
|
+
[1m[35m (6.2ms)[0m COMMIT
|
941005
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
941006
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
941007
|
+
[1m[36m (5.8ms)[0m [1mCOMMIT[0m
|
941008
|
+
[1m[35mSQL (5.6ms)[0m DELETE FROM "switchman_shards" [test:796 master]
|
941009
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:796 master]
|
941010
|
+
[1m[35m (0.1ms)[0m BEGIN [test:796 master]
|
941011
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:796 master]
|
941012
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 796]] [test:796 master]
|
941013
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:796 master]
|
941014
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:796 master]
|
941015
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:796 master]
|
941016
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 797], ["name", "shard1"]] [test:796 master]
|
941017
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:796 master]
|
941018
|
+
[1m[35m (0.2ms)[0m BEGIN [test:796 master]
|
941019
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 798], ["name", "shard2"]] [test:796 master]
|
941020
|
+
[1m[35m (0.3ms)[0m COMMIT [test:796 master]
|
941021
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:796 master]
|
941022
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:796 master]
|
941023
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 797]] [test:796 master]
|
941024
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [test:796 master]
|
941025
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:798 master]
|
941026
|
+
[1m[35m (0.5ms)[0m INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:796 master]
|
941027
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m [test:796 master]
|
941028
|
+
[1m[35m (0.2ms)[0m ROLLBACK [1:798 master]
|
941029
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:796 master]
|
941030
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [test:796 master]
|
941031
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:796 master]
|
941032
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
941033
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941034
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
941035
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941036
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
941037
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
941038
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", "t"]]
|
941039
|
+
[1m[35m (6.2ms)[0m COMMIT
|
941040
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941041
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941042
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941043
|
+
[1m[35m (0.1ms)[0m BEGIN
|
941044
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
941045
|
+
[1m[35m (6.0ms)[0m COMMIT
|
941046
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
941047
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
941048
|
+
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
|
941049
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:799 master]
|
941050
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:799 master]
|
941051
|
+
[1m[35m (0.1ms)[0m BEGIN [test:799 master]
|
941052
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:799 master]
|
941053
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 799]] [test:799 master]
|
941054
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:799 master]
|
941055
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:799 master]
|
941056
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:799 master]
|
941057
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 800], ["name", "shard1"]] [test:799 master]
|
941058
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:799 master]
|
941059
|
+
[1m[35m (0.1ms)[0m BEGIN [test:799 master]
|
941060
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 801], ["name", "shard2"]] [test:799 master]
|
941061
|
+
[1m[35m (0.3ms)[0m COMMIT [test:799 master]
|
941062
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:799 master]
|
941063
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:799 master]
|
941064
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 800]] [test:799 master]
|
941065
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 801]] [test:799 master]
|
941066
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:801 master]
|
941067
|
+
[1m[35m (0.4ms)[0m INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:799 master]
|
941068
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m [test:799 master]
|
941069
|
+
[1m[35m (0.4ms)[0m ROLLBACK [1:801 master]
|
941070
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:799 master]
|
941071
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:799 master]
|
941072
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:799 master]
|
941073
|
+
[1m[36m (1.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
941074
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941075
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
941076
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941077
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
941078
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
941079
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", true]]
|
941080
|
+
[1m[35m (11.8ms)[0m COMMIT
|
941081
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941082
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941083
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941084
|
+
[1m[35m (0.1ms)[0m BEGIN
|
941085
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
941086
|
+
[1m[35m (10.9ms)[0m COMMIT
|
941087
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
941088
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
941089
|
+
[1m[36m (8.1ms)[0m [1mCOMMIT[0m
|
941090
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "switchman_shards" [test:802 master]
|
941091
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:802 master]
|
941092
|
+
[1m[35m (0.2ms)[0m BEGIN [test:802 master]
|
941093
|
+
[1m[36mSwitchman::Shard Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:802 master]
|
941094
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 802]] [test:802 master]
|
941095
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:802 master]
|
941096
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:802 master]
|
941097
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:802 master]
|
941098
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 803], ["name", "shard1"]] [test:802 master]
|
941099
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:802 master]
|
941100
|
+
[1m[35m (0.1ms)[0m BEGIN [test:802 master]
|
941101
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 804], ["name", "shard2"]] [test:802 master]
|
941102
|
+
[1m[35m (0.3ms)[0m COMMIT [test:802 master]
|
941103
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:802 master]
|
941104
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:802 master]
|
941105
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 803]] [test:802 master]
|
941106
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 804]] [test:802 master]
|
941107
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:804 master]
|
941108
|
+
[1m[35m (0.6ms)[0m INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:802 master]
|
941109
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m [test:802 master]
|
941110
|
+
[1m[35m (0.2ms)[0m ROLLBACK [1:804 master]
|
941111
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:802 master]
|
941112
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:802 master]
|
941113
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:802 master]
|
941114
|
+
[1m[36m (1.9ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
941115
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941116
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
941117
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941118
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
941119
|
+
[1m[35mSwitchman::Shard Exists (0.2ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
941120
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", true]]
|
941121
|
+
[1m[35m (5.5ms)[0m COMMIT
|
941122
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941123
|
+
[1m[35mSwitchman::Shard Load (1.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941124
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941125
|
+
[1m[35m (0.6ms)[0m BEGIN
|
941126
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
941127
|
+
[1m[35m (9.9ms)[0m COMMIT
|
941128
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
941129
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
941130
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
941131
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "switchman_shards" [test:805 master]
|
941132
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:805 master]
|
941133
|
+
[1m[35m (0.1ms)[0m BEGIN [test:805 master]
|
941134
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:805 master]
|
941135
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 805]] [test:805 master]
|
941136
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m [test:805 master]
|
941137
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:805 master]
|
941138
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:805 master]
|
941139
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 806], ["name", "shard1"]] [test:805 master]
|
941140
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:805 master]
|
941141
|
+
[1m[35m (0.1ms)[0m BEGIN [test:805 master]
|
941142
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 807], ["name", "shard2"]] [test:805 master]
|
941143
|
+
[1m[35m (0.2ms)[0m COMMIT [test:805 master]
|
941144
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:805 master]
|
941145
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:805 master]
|
941146
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 806]] [test:805 master]
|
941147
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 807]] [test:805 master]
|
941148
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:807 master]
|
941149
|
+
[1m[35m (0.4ms)[0m INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:805 master]
|
941150
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m [test:805 master]
|
941151
|
+
[1m[35m (0.2ms)[0m ROLLBACK [1:807 master]
|
941152
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m [test:805 master]
|
941153
|
+
[1m[35mSQL (9.9ms)[0m DELETE FROM "switchman_shards" [test:805 master]
|
941154
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:805 master]
|
941155
|
+
[1m[36m (1.6ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
941156
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941157
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
941158
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941159
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
941160
|
+
[1m[35mSwitchman::Shard Exists (0.3ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
941161
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", true]]
|
941162
|
+
[1m[35m (6.1ms)[0m COMMIT
|
941163
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941164
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941165
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941166
|
+
[1m[35m (0.1ms)[0m BEGIN
|
941167
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
941168
|
+
[1m[35m (5.5ms)[0m COMMIT
|
941169
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
941170
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
941171
|
+
[1m[36m (4.4ms)[0m [1mCOMMIT[0m
|
941172
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "switchman_shards" [test:808 master]
|
941173
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:808 master]
|
941174
|
+
[1m[35m (0.1ms)[0m BEGIN [test:808 master]
|
941175
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:808 master]
|
941176
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 808]] [test:808 master]
|
941177
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:808 master]
|
941178
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:808 master]
|
941179
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:808 master]
|
941180
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 809], ["name", "shard1"]] [test:808 master]
|
941181
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:808 master]
|
941182
|
+
[1m[35m (0.1ms)[0m BEGIN [test:808 master]
|
941183
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 810], ["name", "shard2"]] [test:808 master]
|
941184
|
+
[1m[35m (0.3ms)[0m COMMIT [test:808 master]
|
941185
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:808 master]
|
941186
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:808 master]
|
941187
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 809]] [test:808 master]
|
941188
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 810]] [test:808 master]
|
941189
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:810 master]
|
941190
|
+
[1m[35m (0.3ms)[0m INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:808 master]
|
941191
|
+
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m [test:808 master]
|
941192
|
+
[1m[35m (0.4ms)[0m ROLLBACK [1:810 master]
|
941193
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m [test:808 master]
|
941194
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "switchman_shards" [test:808 master]
|
941195
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:808 master]
|
941196
|
+
[1m[36m (1.3ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
941197
|
+
[1m[35mSwitchman::Shard Load (1.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941198
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
941199
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941200
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
941201
|
+
[1m[35mSwitchman::Shard Exists (0.5ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
941202
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", true]]
|
941203
|
+
[1m[35m (5.6ms)[0m COMMIT
|
941204
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941205
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941206
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941207
|
+
[1m[35m (0.1ms)[0m BEGIN
|
941208
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
941209
|
+
[1m[35m (6.0ms)[0m COMMIT
|
941210
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
941211
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
941212
|
+
[1m[36m (5.7ms)[0m [1mCOMMIT[0m
|
941213
|
+
[1m[35mSQL (6.0ms)[0m DELETE FROM "switchman_shards" [test:811 master]
|
941214
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:811 master]
|
941215
|
+
[1m[35m (0.1ms)[0m BEGIN [test:811 master]
|
941216
|
+
[1m[36mSwitchman::Shard Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:811 master]
|
941217
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 811]] [test:811 master]
|
941218
|
+
[1m[36m (5.9ms)[0m [1mCOMMIT[0m [test:811 master]
|
941219
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:811 master]
|
941220
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:811 master]
|
941221
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 812], ["name", "shard1"]] [test:811 master]
|
941222
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:811 master]
|
941223
|
+
[1m[35m (0.1ms)[0m BEGIN [test:811 master]
|
941224
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 813], ["name", "shard2"]] [test:811 master]
|
941225
|
+
[1m[35m (0.3ms)[0m COMMIT [test:811 master]
|
941226
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:811 master]
|
941227
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:811 master]
|
941228
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 812]] [test:811 master]
|
941229
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 813]] [test:811 master]
|
941230
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [1:813 master]
|
941231
|
+
[1m[35m (0.3ms)[0m INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:811 master]
|
941232
|
+
[1m[36mUser Load (0.9ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m [test:811 master]
|
941233
|
+
[1m[35m (0.4ms)[0m ROLLBACK [1:813 master]
|
941234
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m [test:811 master]
|
941235
|
+
[1m[35mSQL (0.7ms)[0m DELETE FROM "switchman_shards" [test:811 master]
|
941236
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:811 master]
|
941237
|
+
[1m[36m (1.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m
|
941238
|
+
[1m[35mSwitchman::Shard Load (0.9ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941239
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "switchman_shards"[0m
|
941240
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941241
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
941242
|
+
[1m[35mSwitchman::Shard Exists (0.4ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
941243
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id"[0m [["default", true]]
|
941244
|
+
[1m[35m (6.4ms)[0m COMMIT
|
941245
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941246
|
+
[1m[35mSwitchman::Shard Load (0.8ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND "switchman_shards"."name" = 'shard1' ORDER BY "switchman_shards"."id" ASC LIMIT 1
|
941247
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NOT NULL AND name='shard2') ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m
|
941248
|
+
[1m[35m (0.2ms)[0m BEGIN
|
941249
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "switchman_shards" ("name") VALUES ($1) RETURNING "id"[0m [["name", "shard1"]]
|
941250
|
+
[1m[35m (9.1ms)[0m COMMIT
|
941251
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
941252
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "shard2"]]
|
941253
|
+
[1m[36m (5.8ms)[0m [1mCOMMIT[0m
|
941254
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "switchman_shards" [test:814 master]
|
941255
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1[0m [test:814 master]
|
941256
|
+
[1m[35m (0.1ms)[0m BEGIN [test:814 master]
|
941257
|
+
[1m[36mSwitchman::Shard Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [test:814 master]
|
941258
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 814]] [test:814 master]
|
941259
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [test:814 master]
|
941260
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:814 master]
|
941261
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:814 master]
|
941262
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "switchman_shards" ("id", "name") VALUES ($1, $2) RETURNING "id" [["id", 815], ["name", "shard1"]] [test:814 master]
|
941263
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m [test:814 master]
|
941264
|
+
[1m[35m (0.1ms)[0m BEGIN [test:814 master]
|
941265
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", "1"], ["id", 816], ["name", "shard2"]] [test:814 master]
|
941266
|
+
[1m[35m (0.3ms)[0m COMMIT [test:814 master]
|
941267
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [test:814 master]
|
941268
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:814 master]
|
941269
|
+
[1m[36mSwitchman::Shard Load (0.5ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1[0m [["id", 815]] [test:814 master]
|
941270
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 816]] [test:814 master]
|
941271
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [1:816 master]
|
941272
|
+
[1m[35m (1.0ms)[0m INSERT INTO users(created_at, updated_at) VALUES('2014-07-07', '2014-07-07') [test:814 master]
|
941273
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m [test:814 master]
|